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; }
public void Cancel() { if (prevMenu.GetComponent <Menu>() is GridMenu) { GridMenu gm = prevMenu.GetComponent <GridMenu>(); gm.activeGO = null; gm.SetElementColor(gm.selectedGO, selectedColor, defaultColor); HideContextMenu(); } }