Exemple #1
0
 public override void EndAction(Vector2 lastTouchPosition)
 {
     _soundControler.PlaySound(_soundControler.ClickOut);
     if (State == CellState.None || State == CellState.AttackZone)
     {
         _fightSceneBhv.AfterPlayerMovement();
         return;
     }
     else if (State == CellState.Mouvement)
     {
         _gridBhv.OnPlayerMovementClick(X, Y);
     }
     else if (State == CellState.Spawn && Type == CellType.Spawn)
     {
         _gridBhv.OnPlayerSpawnClick(X, Y);
     }
     else if (State == CellState.AttackRange)
     {
         _gridBhv.OnPlayerAttackClick(X, Y);
     }
     else if (State == CellState.SkillRange)
     {
         _gridBhv.OnPlayerSkillClick(X, Y);
     }
 }