Esempio n. 1
0
 public void DisplayMoveGrid()
 {
     // set the action to "move"
     action = "move";
     // Close the ContextMenu
     //contextMenu.HideContextMenu();
     // Show the Movement Grid
     gridElement.DisplayMoveTiles(remainingMoves, true);
     grid.SetElementColor(gridElement.gameObject, GridMenu.activeColor);
     grid.activeGO = gridElement.gameObject;
 }
Esempio n. 2
0
 public void Cancel()
 {
     if (prevMenu.GetComponent <Menu>() is GridMenu)
     {
         GridMenu gm = prevMenu.GetComponent <GridMenu>();
         gm.activeGO = null;
         gm.SetElementColor(gm.selectedGO, selectedColor, defaultColor);
         HideContextMenu();
     }
 }