Ejemplo n.º 1
0
 private void Start()
 {
     allPoints = GameObject.Find("PointsController").GetComponent <AllPoints>();
     if (allPoints == null)
     {
         Debug.Log("The script water dont find the Game Object 'PointsController'");
     }
     moneyCollect = GameObject.Find("PointsController").GetComponent <MoneyCollect>();
     if (moneyCollect == null)
     {
         Debug.Log("The script water dont find the Game Object 'PointsController'");
     }
     requirement = GameObject.Find("ItensRequirementManager").GetComponent <WaterRequirement>();
     if (requirement == null)
     {
         Debug.Log("The script water dont find the Game Object 'ItensRequirementManager'");
     }
     musicController = GameObject.Find("LevelManager").GetComponent <MusicController>();
     SetCompanyValue = CompanyValue;
 }
Ejemplo n.º 2
0
 public string WaterPlant()
 {
     return(WaterRequirement.WaterPlant());
 }