Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public virtual void GoTo(ControllerState.Type type)
 {
     GoTo(State.GetData(type));
 }