Exemplo n.º 1
0
    void Start()
    {
        Debug.Log("START NETWORKING");
        instance = this;
        Debug.Log(fnConnectResult("", 100000, ""));
        int ht = Convert.ToInt32(createBoard.instance.gridHeight);
        int wt = Convert.ToInt32(createBoard.instance.gridWidth);

        Debug.Log(ht + "," + wt);

        for (int i = 0; i < ht; i++)
        {
            for (int j = 0; j < wt; j++)
            {
                string     celln = "cell_" + i.ToString() + "_" + j.ToString();
                GameObject t     = GameObject.Find(celln);
                gridCells.Add(t);
            }
        }
        //gridCells[11].gameObject.renderer.material.color = Color.black;
    }
Exemplo n.º 2
0
    void Start()
    {
        Debug.Log("START NETWORKING");
        instance = this;
        Debug.Log( fnConnectResult("", 100000, "") );
        int ht = Convert.ToInt32(createBoard.instance.gridHeight);
        int wt = Convert.ToInt32(createBoard.instance.gridWidth);

        Debug.Log(ht + "," + wt);

        for(int i = 0; i < ht; i++)
        {
            for(int j = 0; j < wt; j++)
            {
                string celln = "cell_" + i.ToString() + "_" + j.ToString();
                GameObject t = GameObject.Find(celln);
                gridCells.Add(t);
            }
        }
        //gridCells[11].gameObject.renderer.material.color = Color.black;
    }