Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     //Panel assigned to variable
     assignTexts();
     _turnScripts = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>();
     _rocketLevel = GameObject.Find("_EconomicMechanism").GetComponent <RocketLevel>();
 }
Beispiel #2
0
 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>();
     }
 }
Beispiel #3
0
 void Start()
 {
     _manageScripts = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>();
     _errorrPanel   = GameObject.Find("Canvas/PanelErrorPlanetary");
     _errorrPanel.SetActive(false);
     _audioSource = this.GetComponent <AudioSource>();
     // TO VERIFY IF FIRST RUN OF THE GAME IF YES MAIN MENU DISPLAYED
     if (PlayerPrefs.GetInt("MainMenuTruee") == 1)
     {
     }
     else
     {
         PlayerPrefs.SetInt("MainMenuTruee", 1);
         ChangeToMainMenuScene();
     }
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     _manageScripts = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>();
     _displayer     = GameObject.Find("_SceneManager").GetComponent <DisplayerRocketLevel>();
 }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     _manageScripts = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>();
 }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     _economy       = GameObject.Find("_EconomicMechanism").GetComponent <Economy>();
     _scriptManager = GameObject.Find("_SceneManager").GetComponent <TurnOnOffScripts>();
 }