using System.IO; using FlaxEngine; namespace Game { public static class AssetManager { public static string ContentPath { get; private set; } = Path.Combine(Directory.GetCurrentDirectory(), "Content"); public static GameplayGlobals Globals { get; private set; } public static Config Config { get; private set; } public static void Init() { Globals = Content.Load(Path.Combine(ContentPath, "Settings", "GameSettings", "GameplayGlobals.flax")); Config = ConfigParser.ParseFile(Path.Combine(ContentPath, "config.cfg")); } } }