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

            globalSettings = ServiceLocator.Get<GlobalSettings>();
            gameClient = ServiceLocator.Get<IGameClient>();
        }
예제 #2
0
        public GlobalSettings GetGlobalSettings()
        {
            var settings = ServiceLocator.Get<GlobalSettings>();

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

            return settings;
        }