// Update is called once per frame void FixedUpdate() { //Debug.Log(state); FishState returnState = state.Update(this); if (returnState != null) { state = returnState; state.Enter(this); } }
private void Update() { state.Update(); }