浏览代码

Fix bad logic in StateLogic

/main
Thomas ICHÉ 5 年前
当前提交
ce8ea35f
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      Runtime/LevelScripting/Logic/StateLogic.cs

3
Runtime/LevelScripting/Logic/StateLogic.cs


{
if (StateMachine.CurrentState == TargetState && IfCurrentState != null && IfCurrentState.Length > 0)
Call(IfCurrentState, instigator);
if (StateMachine.CurrentState != TargetState && IfNotCurrentState != null && IfNotCurrentState.Length > 0)
else if (StateMachine.CurrentState != TargetState && IfNotCurrentState != null && IfNotCurrentState.Length > 0)
Call(IfNotCurrentState, instigator);
}
}

正在加载...
取消
保存