private void Model_Notify(object sender, NotifyArg e) { if (this.Notify != null) { this.Notify(sender, e); } }
public void LoadCommonAB(NotifyArg args) { string[] commonAB = { "UI/Prefab/Common" }; if (loadMode == ResourceLoadMode.AssetBundle) { abLoader.StageLoadAB(commonAB); } }
public void TriggerNotify(string notify, NotifyArg arg = null) { Notify item = ObjectPoolManager.Instance.Get <Notify>(); item.NotifyString = notify; item.arg = arg; triggerQueue.Enqueue(item); }
private void Syncfrm_Notify(object sender, NotifyArg e) { if (this.InvokeRequired) { this.Invoke(new Action(() => { this.SendNotify(e.Message); })); } else { this.SendNotify(e.Message); } }
private void OnPlayAudio(NotifyArg arg) { AudioNotifyArg audioArg = (arg as AudioNotifyArg); if (currentBgm != null && currentBgm.IsSame(audioArg)) { return; } AudioClip audioClip = ResourceManager.Instance.LoadAudioClip(audioArg.AudioPath); AudioSource audioSource = audioArg.IsBgm ? FrameworkRoot.bgmAudioSource : FrameworkRoot.soundAudioSource; audioSource.clip = audioClip; audioSource.volume = audioArg.IsBgm ? bgmVolume : soundVolume; audioSource.loop = audioArg.IsBgm; currentBgm = audioArg.IsBgm ? audioArg : currentBgm; audioSource.Play(); }
private void ChangeScene(NotifyArg args) { LeaveAllStage(); SceneManager.LoadSceneAsync((args as SceneNotifyArg).SceneName); }
private void FrameworkStartUp(NotifyArg args) { LoadStage <HomeStage>(); //ChangeScene(new SceneNotifyArg("Main")); }
public void Dispose() { NotifyString = ""; arg = null; callback = null; }
public void TriggerNotify(string notify, NotifyArg arg = null) { NotifyManager.Instance.TriggerNotify(notify, arg); }
private void CheckResource(NotifyArg args) { }