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");
         }
     }
 }
 //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");
         }
     }
 }