Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     array = SceneManager.GetSceneByName("BombMission").GetRootGameObjects();
     if (array.Length > 0)
     {
         GameObject temp;
         for (int i = 0; i < array.Length; i++)
         {
             temp = array [i];
             if (temp.GetComponent <bombgamescript> () != null)
             {
                 script = temp.GetComponent <bombgamescript> ();
                 break;
             }
         }
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     script = temp.GetComponent <bombenterexitscript> ();
     self.GetComponent <Light> ().enabled = true;
     bgs = main.GetComponent <bombgamescript> ();
 }