public ImmediateMeleeCommand(Transform character, Vector2 dir, MeleeAttack attack) : base(character, dir)
 {
     this.attack = attack;
 }
 void Awake()
 {
     meleeAttack = GetComponent <MeleeAttack> ();
     rigidBody2D = GetComponent <Rigidbody2D> ();
 }
Exemple #3
0
 public SingleMeleeTowardsPlayerAction(Transform character)
 {
     this.character = character;
     attack         = character.GetComponent <MeleeAttack> ();
 }