public static IPromise <EnvironmentConfig> InitEnvironmentConfig() { IPromise <EnvironmentConfig> p = ResourceLoaderPromise.Load <EnvironmentConfig>(ENVIRONMENT_CONFIG_PATH, Context.OutOfDungeon, ResourceLoadMode.Instantly); p.Then(config => { EnvironmentConfig = config; EnvironmentConfig.Deserialize(); }); return(p); }