示例#1
0
        public override void PlayAction(AbstractCharacter character)
        {
            MovementComponent movementComponent = character.GetComponent <MovementComponent>();

            movementComponent.OnFinishedAction += OnMovementFinished;
            movementComponent.Move(this.destination);
        }
示例#2
0
        public override void PlayAction(AbstractCharacter character)
        {
            AttackComponent attackComponent = character.GetComponent <AttackComponent>();

            attackComponent.AttackSquare(target);
            actionEnded?.Invoke(this, null); // Immediately activates action
        }
示例#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);
        }