public virtual ControllerState.IData GetData(ControllerState.Type type) { switch (type) { case ControllerState.Type.Walk: return(walk); case ControllerState.Type.Crouch: return(crouch); case ControllerState.Type.Prone: return(prone); case ControllerState.Type.Sprint: return(sprint); } throw new ArgumentException(); }
public virtual void GoTo(ControllerState.Type type) { GoTo(State.GetData(type)); }