Beispiel #1
0
 // public interface: setup
 public void SetGridStartGame(int sizeX, int sizeY)
 {
     gridTilesX     = sizeX;
     gridTilesZ     = sizeY;
     gridTilesTotal = sizeX * sizeY;
     managerUI.ToggleMaximiseElementUI(managerUI.PanelMenuNewGame.GetComponent <RectTransform>(), false);
     SetupLevelNewGame();
 }// set x,y size of the tile grid
Beispiel #2
0
 private void HandleMouseOff() // hides tile Button
 {
     if (!managerControls.OverUI)
     {
         managerUI.ToggleMaximiseElementUI(canvasGO.GetComponent <RectTransform>(), false);
         managerPlayer.TileMousedOver = null;
     }
 }
Beispiel #3
0
    } // called by mousing over tile from TileTerrain.cs

    public void MouseOffTile(GameObject canvasTile)
    {
        managerCursor.SetCursor(Settings.nameCursorDefault);
        managerUI.ToggleMaximiseElementUI(canvasTile.GetComponent <RectTransform>(), false);
        managerPlayer.TileMousedOver = null;
    } // called by mousing off tile from TileTerrain.cs; doesn't check if !overUI