Example #1
0
 /// <summary>
 /// Takes a input manager callback and turns it into a PlayerInputPacket.
 /// </summary>
 /// <param name="action">The given action to perform based of user input</param>
 /// <param name="APlayerIndex">The index of the player that performed the action</param>
 public PlayerInputPacket(PlayerActions AnAction, int APlayerIndex, Vector2 ADirection)
 {
     Action            = AnAction;
     PlayerIndex       = APlayerIndex;
     MovementDirection = ADirection;
 }
Example #2
0
        public PlayerActions OnEnter(PlayerCharacter player)
        {
            hit = false;

            return(PlayerActions.GetInstance());
        }