コード例 #1
0
 void Start()
 {
     if (State != null)
     {
         State.OnEnter();
     }
 }
コード例 #2
0
    public void ChangeState(AbstractLightState state)
    {
        if (State != null)
            State.OnExit();

        State = state;

        if (State != null)
            State.OnEnter();
    }
コード例 #3
0
    public void ChangeState(AbstractLightState state)
    {
        if (State != null)
        {
            State.OnExit();
        }

        State = state;

        if (State != null)
        {
            State.OnEnter();
        }
    }