private void Start( ) { MainManager Main = GameObject.FindObjectOfType <MainManager>( ); if (Main) { Main.Refind( ); tele = GameObject.FindObjectOfType <Teleproter>( ); if (tele) { Main.ChangeToNext(tele.gameObject, false); } } }
protected override void DoAction(GameObject cameraBase) { selfScene.SetActive(false); targetScene.SetActive(true); RenderSettings.skybox = skybox; MainManager Main = GameObject.FindObjectOfType <MainManager>( ); if (Main) { Main.Refind(); Teleproter tele = GameObject.FindObjectOfType <Teleproter>(); if (tele) { Main.ChangeToNext(tele.gameObject, false); } } }