Exemplo n.º 1
0
 public void AttackButton()
 {
     if (state == ControlState.Play)
     {
         state = ControlState.Attack;
         if (TileManager.spawnedTileAction.Count == 0 && PathManager.MakeTileList(allTile(), unitOnControl.GetComponent <UnitInfo>().tileOn, unitOnControl, "attack").Count > 0)
         {
             PathManager.MakeTileList(allTile(), unitOnControl.GetComponent <UnitInfo>().tileOn, unitOnControl, "attack");
             PathManager.DoShowActionTile("attack");
         }
     }
 }
Exemplo n.º 2
0
 //Button
 public void MoveButton()
 {
     if (state == ControlState.Play)
     {
         state = ControlState.Move;
         if (TileManager.spawnedTileAction.Count == 0)
         {
             PathManager.MakeTileList(allTile(), unitOnControl.GetComponent <UnitInfo>().tileOn, unitOnControl, "move");
             PathManager.DoShowActionTile("move");
         }
     }
 }