Example #1
0
    [Server] public void SetGameSize(DC_GameGrid.GridSize gSize, float size)
    {
        gameGridSize     = gSize;
        gameGridCellSize = size;

        gameGrid.SetGridSize(gSize, size);
    }
Example #2
0
    [Server] void CreateGameGrid()
    {
        var go = Instantiate(gameGridPrefab);

        NetworkServer.Spawn(go);

        gameGridO = go;
        gameGrid  = go.GetComponent <DC_GameGrid>();

        gameGrid.SetGridSize(gameGridSize, gameGridCellSize);
    }