Esempio n. 1
0
    IEnumerator initialization()
    {
        Screen.SetResolution(2432, 960, false);

        dealWithUDPMessage = FindObjectOfType <DealWithUDPMessage>();

        readJson = FindObjectOfType <ReadJson>();

        OverridecameraMover = FindObjectOfType <OverriderCameraMove>();

        createUI = FindObjectOfType <CreateUI>();

        screenProtectCtr = FindObjectOfType <ScreenProtectCtr>();

        chinaMapNodeCtr = FindObjectOfType <ChinaMapNodeCtr>();

        soundMangager = FindObjectOfType <SoundMangager>();

        yield return(StartCoroutine(readJson.initialization()));

        yield return(StartCoroutine(ReadAssetImage()));

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

        soundMangager.initialization();

        screenProtectCtr.initialization();

        createUI.Initialization();

        chinaMapNodeCtr.initialization();

        OverridecameraMover.initializtion(new Vector3(0, 15.3f, 300f), new Vector3(0, 15.3f, -30f));
    }
Esempio n. 2
0
    // Use this for initialization
    public override void initialization()
    {
        base.initialization();
        logoCtr.initialization();
        logoCtr.ShowAll();


        foreach (ICtr ctr in ctrs)
        {
            float time = Random.Range(0.5f, 1f);
            ctr.initialization();
            StartCoroutine(ctr.show(time));
        }

        if (instance == null)
        {
            instance = this;
        }
    }