protected override void Start() { base.Start(); manager = managerObj.GetComponent <ILevelManagerTranspiration>(); transpirationBar = transform.GetChild(7).GetComponent <ProgressBar>(); setInitialBarValues(transpirationBar, 0, manager.GetTranspirationAmountNeeded()); treePlanter = GameObject.Find("Player3").GetComponent <TreePlantingController>(); treeCountText = this.transform.GetChild(6).GetComponent <Text>(); treeCountText.text = ":" + treePlanter.treeAmount; }
private void Start() { tController = this.GetComponent <TreeController>(); manager = managerObj.GetComponent <ILevelManagerTranspiration>(); }