コード例 #1
0
 private void Awake()
 {
     Application.runInBackground = true;
     BlackScreen.SetActive(false);
     Zombie.SetInfectedScreen(false);
     GUI2.Init();
     TEX.Init();
     SND.Init();
     PlayerControll.Init();
     WeaponData.Init();
     BasePlayer.Init();
     EntControll.Init();
     this.goGUI = GameObject.Find("GUI");
     this.goGUI.GetComponent <global::Console>().PostAwake();
     this.goGUI.GetComponent <Crosshair>().PostAwake();
     this.goGUI.GetComponent <HUD>().PostAwake();
     this.goGUI.GetComponent <ChooseTeam>().PostAwake();
     this.goGUI.GetComponent <ScoreBoard>().PostAwake();
     this.goGUI.GetComponent <Chat>().PostAwake();
     this.goGUI.GetComponent <ScoreTop>().PostAwake();
     this.goGUI.GetComponent <Award>().PostAwake();
     this.goGUI.GetComponent <PlayerNames>().PostAwake();
     this.goGUI.GetComponent <Message>().PostAwake();
     this.goGUI.GetComponent <Indicator>().PostAwake();
     this.goGUI.GetComponent <BuyMenu>().PostAwake();
     this.goGUI.GetComponent <EscapeMenu>().PostAwake();
     this.goGUI.GetComponent <Vote>().PostAwake();
     this.goGUI.GetComponent <C4>().PostAwake();
     this.goGUI.GetComponent <MenuBanList>().PostAwake();
     this.goGUI.GetComponent <BlackScreen>().PostAwake();
     this.goGUI.GetComponent <Zombie>().PostAwake();
     this.goPlayer = GameObject.Find("LocalPlayer");
     this.goPlayer.GetComponent <HitSound>().PostAwake();
     this.goPlayer.GetComponent <HitEffect>().PostAwake();
     this.goCore = GameObject.Find("Core");
     this.goCore.GetComponent <UDPClient>().PostAwake();
     this.goCore.GetComponent <Client>().PostAwake();
     base.SendMessage("PostAwake");
     base.StartCoroutine("autostart");
     RenderSettings.fog = false;
 }
コード例 #2
0
    private void Awake()
    {
        RenderSettings.fog = false;
        switch (0)
        {
        case 0:
            GameData.gSteam = true;
            GameData.gVK    = false;
            break;

        case 1:
            GameData.gSteam  = false;
            GameData.gSocial = true;
            GameData.gVK     = true;
            break;

        case 2:
            GameData.gSteam  = false;
            GameData.gSocial = true;
            GameData.gFB     = true;
            break;
        }
        MonoBehaviour.print("MainManager::Awake");
        Application.runInBackground = true;
        TEX.Init();
        GUIM.Init();
        BaseData.Init();
        Lang.Init();
        ContentLoader_.Init();
        MenuShop.Init();
        if (GameData.gVK)
        {
        }
        base.gameObject.GetComponent <UDPClient>().PostAwake();
        base.gameObject.GetComponent <WebHandler>().PostAwake();
        base.gameObject.GetComponent <BaseData>().PostAwake();
        this.goGUI = GameObject.Find("GUI");
        UIManager.PostAwake();
        UIManager.SetCanvasActive(true);
        UIManager.SetLoadingActive(true);
        this.goGUI.GetComponent <Main>().PostAwake();
        this.goGUI.GetComponent <TopBar>().PostAwake();
        this.goGUI.GetComponent <BottomBar>().PostAwake();
        this.goGUI.GetComponent <Profile>().PostAwake();
        this.goGUI.GetComponent <MenuShop>().PostAwake();
        this.goGUI.GetComponent <MenuPlayer>().PostAwake();
        this.goGUI.GetComponent <MenuGold>().PostAwake();
        this.goGUI.GetComponent <MenuServers>().PostAwake();
        this.goGUI.GetComponent <MenuOptions>().PostAwake();
        this.goGUI.GetComponent <MenuInventory>().PostAwake();
        this.goGUI.GetComponent <MainMenuConsole>().PostAwake();
        GameObject.Find("UI").GetComponent <UIManager>().DebugText.text = string.Empty;
        Debug.Log("StartAuth");
        bool flag = false;

        if (GameData.gSocial && !flag)
        {
            BaseData.StartAuth();
        }
        if (GameData.gVK && flag)
        {
            BaseData.uid     = "7320897";
            BaseData.key     = "3eeaed79cbe63bb1cb6d977753b1c048";
            BaseData.session = "_";
            WebHandler.get_profile("&version=" + Client.version);
        }
    }