public BenchmarkState(string note) { this.startTimestamp = System.DateTime.Now.ToString(); this.note = note; this.builtCommit = GameBuilderApplication.ReadBuildCommit(); this.host = System.Net.Dns.GetHostName(); this.screenWidth = Screen.width; this.screenHeight = Screen.height; this.fullscreenMode = Screen.fullScreenMode.ToString(); this.qualityLevel = QualitySettings.GetQualityLevel(); this.terrainMips = TerrainSystem.UseMips; this.actorMemCheckMode = VoosEngine.MemCheckMode; this.cpuInfo = SystemInfo.processorType; this.gpuInfo = SystemInfo.graphicsDeviceName; }
void Awake() { Util.UpgradeUserDataDir(); Util.FindIfNotSet(this, ref scenes); Util.FindIfNotSet(this, ref library); Util.FindIfNotSet(this, ref resuming); Util.FindIfNotSet(this, ref popups); Util.FindIfNotSet(this, ref loadingScreen); Util.FindIfNotSet(this, ref sceneController); #if USE_STEAMWORKS foreach (GameFeatured featured in featuredGames) { featured.Setup(); } #endif newButton.onClick.AddListener(templateSelectorMenu.Show); creditsButton.onClick.AddListener(() => creditsObject.SetActive(true)); creditsCloseButton.onClick.AddListener(() => creditsObject.SetActive(false)); gameLibraryButton.onClick.AddListener(menuPanelManager.OpenGameLibrary); menuPanelManager.Setup(); quitButton.onClick.AddListener(Application.Quit); #if USE_PUN multiplayerButton.onClick.AddListener(menuPanelManager.OpenMultiplayerMenu); #else multiplayerButton.gameObject.SetActive(false); #endif moreGamesButton.onClick.AddListener(MoreGames); // featuredMessage.text = FEATURED_LOADING; featuredMessage.text = FEATURED_MSG; menuPanelManager.SetLibraryHeaderText(LIBRARY_HEADER); templateSelectorMenu.Setup(); // To help diagnose things Util.Log($"Culture info: {System.Threading.Thread.CurrentThread.CurrentCulture}"); Util.Log($"GB build commit: {GameBuilderApplication.ReadBuildCommit()}"); }