Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //getting references to the happiness scripts
     pengHappy = this.GetComponent <PenguinHappiness>();
     panHappy  = this.GetComponent <PandaHappiness>();
     gorHappy  = this.GetComponent <GorillaHappiness>();
     zebHappy  = this.GetComponent <ZebrasHappiness>();
     kanHappy  = this.GetComponent <KangarooHappiness>();
 }
 // Use this for initialization
 void Start()
 {
     //getting reference to scripts
     happyManager   = GameObject.Find("HappinessManager");
     penguHappy     = happyManager.GetComponent <PenguinHappiness>();
     panHappy       = happyManager.GetComponent <PandaHappiness>();
     gorHappy       = happyManager.GetComponent <GorillaHappiness>();
     zebHappy       = happyManager.GetComponent <ZebrasHappiness>();
     kangHappy      = happyManager.GetComponent <KangarooHappiness>();
     problemDisplay = this.GetComponent <ProblemDisplay>();
     //hiding objectives initially
     HideAllObjectives();
     //counting the number of problems in the list
     numberofProblemsInList = ProblemsList.Count + 1;
     //do the things that set up the generator
     SetUpGenerator();
 }