Exemplo n.º 1
0
 public override IEnumerator Execute(Unit attackerUnit, Unit targetUnit, Vector3Int targetPos, LevelTile targetTile)
 {
     if (targetUnit != null)
     {
         yield return(targetUnit.Push(WorldUtils.DirectionToTarget(attackerUnit.CellPosition, targetUnit.CellPosition), distance));
     }
 }