public void Awake() { standardState = new StandardState(this, GetComponent<CharacterController>()); floatingState = new FloatingState(this, GetComponent<Rigidbody>()); rockState = new RockState(this, GetComponent<Rigidbody>()); }
public void Awake() { standardState = new StandardState(this, GetComponent <CharacterController>()); floatingState = new FloatingState(this, GetComponent <Rigidbody>()); rockState = new RockState(this, GetComponent <Rigidbody>()); }