Example #1
0
 void Awake()
 {
     spheres = new List <GameObject>();
     if (generateRandomDeck)
     {
         spheres = GenerateRandomDeck();
     }
     gameMaster = GameObject.Find("_GameMaster");
     guiLayout  = gameMaster.GetComponent <GameGUILayout>();
 }
Example #2
0
    void Awake()
    {
        spherule = gameObject.GetComponent <Spherule>();
        if (Application.loadedLevel != 1)
        {
            if (gameObject.GetComponent <Animation_Glow>() != null)
            {
                gameObject.GetComponent <Animation_Glow>().enabled = false;
            }
            gameObject.GetComponent <MK_RotateObject>().enabled = false;
        }

        adjacentSpheres = new List <GameObject>();
        spheresInRow    = new List <GameObject>();
        gameMaster      = GameObject.Find("_GameMaster");
        if (gameMaster != null)
        {
            guiLayout = gameMaster.GetComponent <GameGUILayout>();
        }
    }