public State(GameObject _Person) { this.Person = _Person; this.Person_ctrl = _Person.GetComponent<Hero>(); }
public void MoveLeft() { if (!State.State().Equals(MarioState.Duck)) { rigidbody.MoveLeft(); } else { FacingRight = false; } }