public async void StartUp() { await InitializeServicesAsync(); FEventManager.Subscribe(FEventManager.ON_GAME_MODE_LOADED, OnGameModeLoaded); FEventManager.Subscribe(FEventManager.ON_SCENE_UNLOADED, OnSceneUnloaded); PublishFakeSceneLoadedEvent(); }
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); }