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); }
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); }