Example #1
0
        public async void StartUp()
        {
            await InitializeServicesAsync();

            FEventManager.Subscribe(FEventManager.ON_GAME_MODE_LOADED, OnGameModeLoaded);

            FEventManager.Subscribe(FEventManager.ON_SCENE_UNLOADED, OnSceneUnloaded);

            PublishFakeSceneLoadedEvent();
        }
Example #2
0
        protected async override Task InitializeComponentAsync()
        {
            await base.InitializeComponentAsync();

            name = CLASS_TYPE.Name;

            MakePersistent();

            FEventManager.Subscribe(FEventManager.ON_SCENE_LOADED, OnSceneLoaded);
            FEventManager.Subscribe(FEventManager.ON_SCENE_UNLOADED, OnSceneUnloaded);
        }