From 020fd61af37eaaac81d7b930be15f8c350f28b7d Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Mon, 25 Dec 2017 14:07:42 +0100 Subject: I dab everyday --- Penguloon/Main.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Penguloon/Main.cs') diff --git a/Penguloon/Main.cs b/Penguloon/Main.cs index b2844fc..d9d8003 100644 --- a/Penguloon/Main.cs +++ b/Penguloon/Main.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Input.Touch; using Android.Content.Res; +using Android.Content; namespace Penguloon { @@ -35,8 +36,11 @@ namespace Penguloon set => _resources = value; } - public Main(Resources resources) + public Context Context { get; set; } + + public Main(Resources resources, Context context) { + Context = context; Resources = resources; Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; @@ -70,6 +74,8 @@ namespace Penguloon ContentManager.LoadContent(this); + UserdataManager.ReadData(Context); + // TODO: use this.Content to load your game content here } -- cgit v1.2.3-70-g09d2