Example #1
0
 public void RecievInputUp(MovementInput.MoveType aMoveType)
 {
     if (aMoveType == MovementInput.MoveType.Forward)
     {
         Debug.Log("Forward");
         forward = 0;
     }
     else if (aMoveType == MovementInput.MoveType.Backward)
     {
         Debug.Log("Backward");
         backward = 0;
     }
     else if (aMoveType == MovementInput.MoveType.Left)
     {
         Debug.Log("Left");
         left = 0;
     }
     else if (aMoveType == MovementInput.MoveType.Right)
     {
         Debug.Log("Right");
         right = 0;
     }
 }
Example #2
0
 public void ReciveInputDown(MovementInput.MoveType aMoveType)
 {
     if (aMoveType == MovementInput.MoveType.Forward)
     {
         Debug.Log("Forward");
         forward = m_VerticalSpeed;
     }
     else if (aMoveType == MovementInput.MoveType.Backward)
     {
         Debug.Log("Backward");
         backward = -m_VerticalSpeed;
     }
     else if (aMoveType == MovementInput.MoveType.Left)
     {
         Debug.Log("Left");
         left = -m_HorizontalSpeed;
     }
     else if (aMoveType == MovementInput.MoveType.Right)
     {
         Debug.Log("Right");
         right = m_HorizontalSpeed;
     }
 }