Exemplo n.º 1
0
 public static GamePlayer.Action MakeAttack(GameObject attacker, string attackMessage)
 {
     GamePlayer.Action act = new GamePlayer.Action("Attack", attacker, false);
     act.canMove        = true;
     act.canCameraTurn  = true;
     act.canDrop        = false;
     act.canTurnBody    = true;
     act.canJump        = false;
     act.canInteract    = false;
     act.canSwitchItems = false;
     act.canUseItems    = false;
     act.canMelee       = false;
     act.actionMessage  = attackMessage;
     return(act);
 }
Exemplo n.º 2
0
 public void StartAttack(string attackMessage)
 {
     attack      = PlayerAttack.MakeAttack(player.gameObject, attackMessage);
     isAttacking = true;
     player.SetAction(attack);
 }