Пример #1
0
    public void GameStart()
    {
        UIcontroller = UIcontrollerObj.GetComponent <UIcontroller>();
        gridSize     = UIcontroller.GetComponent <UIcontroller>().sizeFromInput;

        cubeSize        = (1000f) / gridSize; //
        sizeMultiplayer = cubeSize / 100f;


        gridFitMultiplayer = sizeMultiplayer;  //2küp arası 100



        cols = gridSize + 2;   //+1 çünkü çerçeve oyun alanına girmiyor
        rows = gridSize + 2;


        grid = new GameObject[rows, cols];
        GenerateGrid();



        CamFocus();
    }