Beispiel #1
0
    private void Start( )
    {
        MainManager Main = GameObject.FindObjectOfType <MainManager>( );

        if (Main)
        {
            Main.Refind( );

            tele = GameObject.FindObjectOfType <Teleproter>( );
            if (tele)
            {
                Main.ChangeToNext(tele.gameObject, false);
            }
        }
    }
Beispiel #2
0
    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);
            }
        }
    }