public override void PlayAction(AbstractCharacter character) { MovementComponent movementComponent = character.GetComponent <MovementComponent>(); movementComponent.OnFinishedAction += OnMovementFinished; movementComponent.Move(this.destination); }
public override void PlayAction(AbstractCharacter character) { AttackComponent attackComponent = character.GetComponent <AttackComponent>(); attackComponent.AttackSquare(target); actionEnded?.Invoke(this, null); // Immediately activates action }
public override void PlayAction(AbstractCharacter character) { List <Square> squares = GridSystem.Instance.GetRandomListOfSquares(0.5f); BossAttackComponent attackComponent = character.GetComponent <BossAttackComponent>(); attackComponent.OnFinishedAction += OnAttackFinished; attackComponent.SuperAttackSquares(squares); }