Beispiel #1
0
    /*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, "");
        }
    }
Beispiel #2
0
    private void UpdateSceneCleanup()
    {
        Resources.UnloadUnusedAssets();

        System.GC.Collect();
        updateSceneDelegate = UpdateSceneLoad;
        if (background == null)
        {
            background = GameSettings.Background();
        }
    }