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
        }
Exemple #3
0
        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);
        }