Exemplo n.º 1
0
 public static void DestroyMovementUI()
 {
     UnsubscribeToHoverTile();
     RouteLine.DestroyMoveLine();
     MoveGridLine.DestroyMoveGrid();
     CoverIcons.DestroyAll();
 }
Exemplo n.º 2
0
 private static void UpdateUi(object sender, MouseHoverTile.OnHoverTileChangedArgs args)
 {
     if (args.HoverTileUi == null)
     {
         RouteLine.DestroyMoveLine();
         _hoverTile = null;
         return;
     }
     _hoverTile = MapTile.GetMapTileFromUi(args.HoverTileUi);
     UpdateMovementUi();
 }
Exemplo n.º 3
0
 private static void UpdateMovementUi()
 {
     if (_hoverTile.MoveNum > 0 && !_hoverTile.TileProp)
     {
         var rTiles = MoveRoute.GetMoveRoute(_currentUnit.GetCurrentMapTile(), _hoverTile);
         RouteLine.DrawMoveLine(rTiles);
     }
     else
     {
         RouteLine.DestroyMoveLine();
     }
 }