Пример #1
0
    void Update()
    {
        // update the state machine very frame
        m_PlayerSM.UpdateSM();

        // this is how you can print the current active state tree to the log for debugging
        if (Input.GetButtonDown("Fire2"))
        {
            m_PlayerSM.PrintActiveStateTree();
        }
    }