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