/*protected void OnGUI() * { * if (updateGuiDelegate != null && background != null) * { * if (GameSettings.GuiSkin() != null) * { * GUI.skin = GameSettings.GuiSkin(); * } * updateGuiDelegate(); * } * }*/ #endregion #region Update Delegates private void UpdateGui() { GUI.DrawTexture(screenRect, GameSettings.Background(), ScaleMode.ScaleAndCrop); if (loadingProgress > 0) { progressRect.width = (Screen.width - 32) * loadingProgress; GUI.Box(progressRect, ""); } }
private void UpdateSceneCleanup() { Resources.UnloadUnusedAssets(); System.GC.Collect(); updateSceneDelegate = UpdateSceneLoad; if (background == null) { background = GameSettings.Background(); } }