浏览代码

Fixed transition grouping error (#112)

changed the variable idx value from i to the last index of resultGroupsList
/main
GitHub 4 年前
当前提交
28e505c4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UOP1_Project/Assets/Scripts/StateMachine/ScriptableObjects/StateTransitionSO.cs

2
UOP1_Project/Assets/Scripts/StateMachine/ScriptableObjects/StateTransitionSO.cs


List<int> resultGroupsList = new List<int>();
for (int i = 0; i < count; i++)
{
int idx = i;
int idx = resultGroupsList.Count - 1;
while (i < count - 1 && conditionUsages[i].Operator == Operator.And)
{
i++;

正在加载...
取消
保存