public void SetState(FlowerState state) { if (this.state != state && this.state != FlowerState.None) { animator.SetBool(this.state.ToString(), false); } if (state != FlowerState.None) { animator.SetBool(state.ToString(), true); } this.state = state; }