コード例 #1
0
    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;
    }
コード例 #2
0
 private void Start()
 {
     tController = this.GetComponent <TreeController>();
     manager     = managerObj.GetComponent <ILevelManagerTranspiration>();
 }