private void Start() { allPoints = GameObject.Find("PointsController").GetComponent <AllPoints>(); if (allPoints == null) { Debug.Log("The script nature dont find the Game Object 'PointsController'"); } moneyCollect = GameObject.Find("PointsController").GetComponent <MoneyCollect>(); if (moneyCollect == null) { Debug.Log("The script nature dont find the Game Object 'PointsController'"); } requirement = GameObject.Find("ItensRequirementManager").GetComponent <NatureRequirement>(); if (requirement == null) { Debug.Log("The script nature dont find the Game Object 'ItensRequirementManager'"); } musicController = GameObject.Find("LevelManager").GetComponent <MusicController>(); SetCompanyValue = CompanyValue; }
public NatureRequirePreset() { Requirement = new NatureRequirement(); }