// Use this for initialization void Start() { testTxt = GameObject.Find("Canvas/PanelTimer/TextTimer").GetComponent <Text>(); _economyObject = GameObject.Find("_EconomicMechanism"); _economyComponent = _economyObject.GetComponent <Economy>(); _rocket = _economyObject.GetComponent <RocketLevel>(); }
// Use this for initialization void Start() { //Panel assigned to variable assignTexts(); _turnScripts = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>(); _rocketLevel = GameObject.Find("_EconomicMechanism").GetComponent <RocketLevel>(); }
private void Loader() { if (_rocket == null) { _rocket = GameObject.Find("_EconomicMechanism").GetComponent <RocketLevel>(); } if (_economyObject == null) { _economyObject = GameObject.Find("_EconomicMechanism"); } if (_panelMagaer == null) { _panelMagaer = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>(); } }
private void readGameObjects() { if (_economicMechanismObject == null) { _economicMechanismObject = GameObject.Find("_EconomicMechanism"); } if (_economyManager == null) { _economyManager = _economicMechanismObject.GetComponent <Economy>(); } if (_timer == null) { _timer = _economicMechanismObject.GetComponent <MyTimer>(); } if (_rocket == null) { _rocket = _economicMechanismObject.GetComponent <RocketLevel>(); } }
// Use this for initialization void Start() { _rocketLevel = GameObject.Find("_EconomicMechanism").GetComponent <RocketLevel>(); }