예제 #1
0
    void Start()
    {
        selection_circle.SetActive(false);
        is_selected = false;

        current_state = idle_state;
        is_hide       = false;
    }
예제 #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();
    }