diff options
Diffstat (limited to 'Penguloon/ContentManager.cs')
| -rw-r--r-- | Penguloon/ContentManager.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Penguloon/ContentManager.cs b/Penguloon/ContentManager.cs index 50b3566..e4a2b61 100644 --- a/Penguloon/ContentManager.cs +++ b/Penguloon/ContentManager.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework.Graphics; using System.Threading; using Microsoft.Xna.Framework.Audio; +using System; +using Penguloon.Scenes; namespace Penguloon { @@ -21,7 +23,7 @@ namespace Penguloon { //AdManager.Load(main); - new Thread(() => + new Thread(async () => { Thread.CurrentThread.IsBackground = true; @@ -29,9 +31,18 @@ namespace Penguloon LoadContent_(main); + await LoadPlaystorePurchasesAsync(); + + DoneLoading = true; + }).Start(); } + private static async System.Threading.Tasks.Task LoadPlaystorePurchasesAsync() + { + await BillingManager.CheckPurchasesAsync(); + } + private static void LoadContent_(Main main) { float totalItemsToLoad = ContentPathManager.TexturePaths.Count + ContentPathManager.FontPaths.Count + ContentPathManager.SoundPaths.Count; @@ -63,8 +74,6 @@ namespace Penguloon LoadPercentage = (int)((itemsLoaded / totalItemsToLoad) * 100); LoadPercentageF = (itemsLoaded / totalItemsToLoad); } - - DoneLoading = true; } private static void PreLoadContent(Main main) |
