Ejemplo n.º 1
0
    //Called by LineScript to increment count of lines drawn around box. If 12, draws new box and returns true
    public static bool UpdateBox(int i, int j, int k)
    {
        Box_Use_Array[i, j, k]++;

        if (Box_Use_Array[i, j, k] == 12)
        {
            Debug.Log("Draw box: " + 'B' + i.ToString() + j.ToString() + k.ToString());
            BoxScript.Draw(i, j, k);
            UpdateScore();
            UpdateCount();
            return(true);
        }
        else
        {
            return(false);
        }
    }