Exemple #1
0
 // Use this for initialization
 void Start()
 {
     cubeStructure = new CubeStructure();
     InitializePieces();
     ShuffleCube();
     startRotation = true;
 }
Exemple #2
0
    void Awake()
    {
        staticGameManager = this;
        for (int i = 0; i < cubesParent.childCount; i++)
        {
            GameObject    g             = cubesParent.GetChild(i).GetChild(0).gameObject;
            CubeStructure cubeStructure = new CubeStructure();
            cubeStructure.cube = g;
            cubes.Add(cubeStructure);
        }
        playerStartPosition = new Vector3(cubes[0].cube.transform.position.x, cubes[0].cube.transform.position.y + .5f, cubes[0].cube.transform.position.z);

        // Snakes
        GameManager.snakes = new List <List <int> >();
        List <int> snake1 = new List <int>();

        snake1.Add(22);
        snake1.Add(3);
        GameManager.snakes.Add(snake1);

        List <int> snake2 = new List <int>();

        snake2.Add(86);
        snake2.Add(16);
        GameManager.snakes.Add(snake2);

        List <int> snake3 = new List <int>();

        snake3.Add(68);
        snake3.Add(26);
        GameManager.snakes.Add(snake3);

        // Ladders
        GameManager.ladders = new List <List <int> >();
        List <int> ladder1 = new List <int>();

        ladder1.Add(9);
        ladder1.Add(49);
        GameManager.ladders.Add(ladder1);

        List <int> ladder2 = new List <int>();

        ladder2.Add(18);
        ladder2.Add(44);
        GameManager.ladders.Add(ladder2);

        List <int> ladder3 = new List <int>();

        ladder3.Add(56);
        ladder3.Add(82);
        GameManager.ladders.Add(ladder3);

        List <int> ladder4 = new List <int>();

        ladder4.Add(54);
        ladder4.Add(93);
        GameManager.ladders.Add(ladder4);
    }
Exemple #3
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     String database, cube, host, sitesDim;
     database = "STORET_2009";
     cube = "STORET_2009";
     host = "kyle";
     sitesDim = (String)Session["SitesDim"];
     Dictionary<int, String> layerDictionary = (Dictionary<int, String>)Session["LayerDictionary"];
     CubeStructure cs = new CubeStructure(database, cube, host, layerDictionary, sitesDim);
 }