[Server] public void SetGameSize(DC_GameGrid.GridSize gSize, float size) { gameGridSize = gSize; gameGridCellSize = size; gameGrid.SetGridSize(gSize, size); }
[Server] void CreateGameGrid() { var go = Instantiate(gameGridPrefab); NetworkServer.Spawn(go); gameGridO = go; gameGrid = go.GetComponent <DC_GameGrid>(); gameGrid.SetGridSize(gameGridSize, gameGridCellSize); }