Esempio n. 1
0
    void Update()
    {
        if (curState.CheckExit())
        {
            NextState();
            if (curState == null)
            {
                tGui.gameObject.SetActive(false);
                gameObject.SetActive(false);
                return;
            }
        }

        curState.sUpdate();
    }