Example #1
0
    // Use this for initialization
    void Start()
    {
        selection_circle.SetActive(false);
        is_selected = false;

        current_state = idle_state;

        is_hide = false;
    }
Example #2
0
    //STATE MACHINE UTILS ------------------------------------------------------------------------

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