Beispiel #1
0
        public override void Initialize(GameContext context)
        {
            base.Initialize(context);

            globalSettings = ServiceLocator.Get<GlobalSettings>();
            gameClient = ServiceLocator.Get<IGameClient>();
        }
        public GlobalSettings GetGlobalSettings()
        {
            var settings = ServiceLocator.Get<GlobalSettings>();

            if (settings == null)
            {
                settings = new GlobalSettings();
            }

            return settings;
        }