浏览代码

Slight Optim for State Machines

/main
Thomas ICHÉ 5 年前
当前提交
9c708a52
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 7
      Runtime/Ingredients/StateMachine/StateMachine.cs

7
Runtime/Ingredients/StateMachine/StateMachine.cs


[StateMachineState]
public string DefaultState;
[ReorderableList]
[ReorderableList, NonNullCheck]
public State[] States;
State m_CurrentState;

foreach (var state in States)
state.gameObject.SetActive(false);
{
if(state.gameObject.activeSelf)
state.gameObject.SetActive(false);
}
SetState(DefaultState);
}

正在加载...
取消
保存