diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs index 79d6371..37f0786 100644 --- a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs index 79d6371..37f0786 100644 --- a/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs index 79d6371..7d2d3a3 100644 --- a/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file