Esempio n. 1
0
    void Start()
    {
        selection_circle.SetActive(false);
        is_selected = false;

        current_state = idle_state;
        is_hide       = false;
    }
Esempio n. 2
0
    //STATE MACHINE UTILS ------------------------------------------------------------------------

    /// <summary>
    /// Transition to the passed state and resets all the new state variables.
    /// </summary>
    public void ChangeStateTo(INyxState new_state)
    {
        current_state = new_state;
        current_state.StartState();
    }