Exemplo n.º 1
0
 private void Start()
 {
     if (doneThisShitAlready)
     {
         this.gameObject.SetActive(false);
     }
     else if (completed)
     {
         this._fatMon       = this.GetComponentInChildren <FatigueMonster>();
         this._playerScript = this.player.GetComponent <Player>();
     }
     else
     {
         this._fatMon = this.GetComponentInChildren <FatigueMonster>();
         this.start.transform.position = this.player.transform.position;
         this._playerScript            = this.player.GetComponent <Player>();
         this.leaf.SetActive(false);
         this.canvasLeaf.SetActive(false);
         this.canvasNumLeaves.SetActive(false);
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     this._playerScript = player.GetComponent <Player>();
     this._fatMon       = this.GetComponent <FatigueMonster>();
 }