예제 #1
0
    void Start()
    {
        _fsm = FsmSystem <MenuStates> .Initialize(this);

        foreach (var obj in _menus)
        {
            _fsm.AddState(obj, obj.State);
        }
        _fsm.Push(MenuStates.Main);

        PlayerSettings.Instance.OnNameChange = UpdateName;
        UpdateName();
    }
예제 #2
0
 public void Transition(int state)
 {
     _fsm.Push((MenuStates)state);
 }