Ejemplo n.º 1
0
    IEnumerator initialization()
    {
        //-----------find object-------//
        Screen.SetResolution(7424, 1376, false);

        dealWithUDPMessage = FindObjectOfType <DealWithUDPMessage>();

        readJson = FindObjectOfType <ReadJson>();

        createUI = FindObjectOfType <CreateUI>();

        //cameraMover = FindObjectOfType<CameraMover>();

        OveridecameraMover = FindObjectOfType <OverRideCameraMove>();

        videoCtr = FindObjectOfType <VideoCtr>();

        bottomBarCtr = FindObjectOfType <BottomBarCtr>();

        canvasMangager = FindObjectOfType <CanvasMangager>();

        soundMangager = FindObjectOfType <SoundMangager>();

        mainCtr = FindObjectOfType <MainCtr>();
        //------ini--------------//
        yield return(StartCoroutine(readJson.initialization()));

        yield return(StartCoroutine(ReadAssetImage()));

        yield return(StartCoroutine(dealWithUDPMessage.Initialization()));

        soundMangager.initialization();

        StartCoroutine(videoCtr.initialization());

        createUI.initialization();

        //  StartCoroutine( cameraMover.initialization(new Vector3(0, 15.3f, 300f), new Vector3(0, 15.3f, -30f)));

        OveridecameraMover.initializtion(new Vector3(0, 15.3f, 300f), new Vector3(0, 15.3f, -30f));

        bottomBarCtr.initialization();

        canvasMangager.initialization();



        initializationMainUI();



        mainCtr.initialization();

        //VideoCtr.instance.PlayFullScreenVideoPlayer(ValueSheet.screenProtect);


        canvasMangager.ShowScreenProtect();
    }
Ejemplo n.º 2
0
    IEnumerator initialization()
    {
        //-----------find object-------//
        Screen.SetResolution(3360, 1200, false);

        readJson = FindObjectOfType <ReadJson>();

        createUI = FindObjectOfType <CreateUI>();

        cameraMover = FindObjectOfType <CameraMover>();

        videoCtr = FindObjectOfType <VideoCtr>();

        bottomBarCtr = FindObjectOfType <BottomBarCtr>();

        canvasMangager = FindObjectOfType <CanvasMangager>();

        soundMangager = FindObjectOfType <SoundMangager>();

        mainCtr = FindObjectOfType <MainCtr>();
        //------ini--------------//
        yield return(StartCoroutine(readJson.initialization()));

        yield return(StartCoroutine(ReadAssetImage()));

        soundMangager.initialization();

        videoCtr.initialization();

        VideoCtr.instance.PlayFullScreenVideoPlayer(ValueSheet.screenProtect);

        createUI.initialization();

        StartCoroutine(cameraMover.initialization(new Vector3(0, 15.3f, 300f), new Vector3(0, 15.3f, -30f)));

        bottomBarCtr.initialization();

        initializationMainUI();

        canvasMangager.initialization();

        mainCtr.initialization();
    }