Ejemplo n.º 1
0
 void Start()
 {
     game    = GameManager.Instance; //sets Gamemanager object game to the originanal gamemanager
     impeach = ImpeachableOffenses.Instance;
     for (int i = 0; i < Label_Prefabs.Length; i++)
     {
         Label_Prefabs[i].isPassed = false;
     }
     for (int j = 0; j < Label_Prefabs.Length; j++)
     {
         if (Label_Prefabs[j].beenChosen)
         {
             Label_Prefabs[j].isPassed = true;
         }
     }
 }
 void Awake()
 {
     Instance = this;
     // allAudio = FindObjectsOfType(typeof(AudioSource)) as AudioSource[]; //finds all audio and stores it in allAudio array
 }