예제 #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        //Debug.Log(state);
        FishState returnState = state.Update(this);

        if (returnState != null)
        {
            state = returnState;

            state.Enter(this);
        }
    }
예제 #2
0
 private void Update()
 {
     state.Update();
 }