浏览代码

Allow hot reloading of state machines

/UI
DeivSky 4 年前
当前提交
5d7ef302
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18
      UOP1_Project/Assets/Scripts/StateMachine/Core/StateMachine.cs

18
UOP1_Project/Assets/Scripts/StateMachine/Core/StateMachine.cs


#endif
}
#if UNITY_EDITOR
private void OnEnable()
{
UnityEditor.AssemblyReloadEvents.afterAssemblyReload += OnAfterAssemblyReload;
}
private void OnAfterAssemblyReload()
{
_currentState = _transitionTableSO.GetInitialState(this);
_debugger.Awake(this);
}
private void OnDisable()
{
UnityEditor.AssemblyReloadEvents.afterAssemblyReload -= OnAfterAssemblyReload;
}
#endif
private void Start()
{
_currentState.OnStateEnter();

正在加载...
取消
保存