Ejemplo n.º 1
0
        void Start()
        {
            Steamworks.SteamAPI.Init();

            DontDestroyOnLoad(this.gameObject);

            netManager = new NetManager();

            modLogo = Client.LoadAsset <Texture2D>("Assets/Textures/MSCMPLogo.png");

            IMGUIUtils.Setup();

#if !PUBLIC_RELEASE
            // Skip splash screen in development builds.
            Application.LoadLevel("MainMenu");

            DevTools.OnInit();
#endif
        }
Ejemplo n.º 2
0
        void Start()
        {
            Steamworks.SteamAPI.Init();

            DontDestroyOnLoad(this.gameObject);

            netManager = new NetManager();

            modLogo = Client.LoadAsset <Texture2D>("Assets/Textures/MSCMPLogo.png");

            IMGUIUtils.Setup();

            string initialLevel = string.Empty;
            bool   noSplash     = Client.IsCdlParamSet("-nosplash");

#if !PUBLIC_RELEASE
            // Always skip splash screen in development builds.
            noSplash = true;

            DevTools.OnInit();
#endif

            if (noSplash)
            {
                initialLevel = "MainMenu";
            }

            // Add option to automatically host game via command line.
            if (Client.IsCdlParamSet("-autohost"))
            {
                initialLevel = "GAME";
            }

            if (initialLevel != string.Empty)
            {
                Application.LoadLevel(initialLevel);
            }
        }