Пример #1
0
 void Start()
 {
     OnLevelWasLoaded();          // Because unity doesn't call OnLevelWasLoaded when starting a Scene.
     Script3D    = gameObject.GetComponent <MovementScript> ();
     transSwitch = gameObject.GetComponent <OpagueScript> ();
     mouseScript = gameObject.GetComponent <MouseTorque> ();
     YouAreHere  = GameObject.FindGameObjectWithTag("YouAreHere");
     YouAreHere.gameObject.SetActive(false);
 }
Пример #2
0
 void Start()
 {
     OnLevelWasLoaded (); // Because unity doesn't call OnLevelWasLoaded when starting a Scene.
     Script3D = gameObject.GetComponent<MovementScript> ();
     transSwitch = gameObject.GetComponent<OpagueScript> ();
     mouseScript = gameObject.GetComponent<MouseTorque> ();
     YouAreHere = GameObject.FindGameObjectWithTag ("YouAreHere");
     YouAreHere.gameObject.SetActive (false);
 }