public static Promise CreateMetaData(SignalBus signalBus, MetaData metaData) { CreateMetaDataSignal signal = new CreateMetaDataSignal(); signal.MetaData = metaData; signal.OnMetaCreated = new Promise(); signalBus.Fire(signal); return(signal.OnMetaCreated); }
public override void OnStateEnter() { base.OnStateEnter(); MetaData MetaData = GameSettings.MetaDataAsset.Meta; CreateMetaDataSignal.CreateMetaData(SignalBus, MetaData).Then( () => { _staticDataModel.SeedMetaData(MetaData); BootstrapModel.LoadingProgress.Value = BootstrapModel.ELoadingProgress.LoadUserData; } ).Catch(e => { Debug.LogError("Exception Creating new Meta: " + e.ToString()); }); }