/// <summary>
 /// 注销并销毁
 /// </summary>
 protected virtual void DeregisterSpawner()
 {
     Facade.DeregisterObjectSpawnPool(this);
     GameManagerAgent.KillObject(deactiveObjectMount);
 }
 public virtual void ClearAll()
 {
     Facade.ClearObjectSpawnPool(this);
 }
Пример #3
0
 public void Register()
 {
     Facade.AddEventListener(EventKey, Handler);
 }
Пример #4
0
 /// <summary>
 /// 立即停止
 /// </summary>
 public virtual void StopTimerAction()
 {
     Facade.StopCoroutine(tempRoutine);
 }
 public override void StopAudio()
 {
     Facade.StopBackgroundAudio();
 }
Пример #6
0
 /// <summary>
 /// 注销事件,当事件中心的此类Key事件为空时,自动注销这个key。
 /// </summary>
 public void Deregister()
 {
     Facade.RemoveEventListener(EventKey, Handler);
 }
 public override void UnpauseAudio()
 {
     Facade.UnpauseWorldAudio(AudioAttachTarget);
 }
Пример #8
0
 /// <summary>
 /// 注销事件,默认将EventHandler从事件中心注销
 /// 如果需要注销其他事件,则移步RemoveEventListener
 /// </summary>
 protected void RemoveDefaultEventListener(string eventKey)
 {
     Facade.RemoveEventListener(eventKey, EventHandler);
 }
Пример #9
0
 /// <summary>
 /// 注销对象池
 /// 非空虚函数
 /// </summary>
 protected virtual void DeregisterObjectSpawnPool()
 {
     Facade.DeregisterObjectSpawnPool(SpawnObjectPoolKey);
 }
Пример #10
0
 public override void StopAudio()
 {
     Facade.StopWorldAudio(AudioAttachTarget);
 }
Пример #11
0
 /// <summary>
 /// 注册对象池
 /// 非空虚函数
 /// </summary>
 protected virtual void RegisterObjectSpawnPool()
 {
     Facade.RegisterObjcetSpawnPool(SpawnObjectPoolKey, SpawnItem, OnSpawn, OnDespawn);
 }
 public override void UnpauseAudio()
 {
     Facade.UnpauseBackgroundAudio();
 }
 public override void PauseAudio()
 {
     Facade.PauseBackgroundAudio();
 }
Пример #14
0
 protected void DispatchEvent(string eventKey, GameEventArgs args)
 {
     Facade.DispatchEvent(eventKey, this, args);
 }
Пример #15
0
 protected override void OnDestroy()
 {
     Facade.DeregisterController(this);
 }
Пример #16
0
 /// <summary>
 /// 注册事件,默认将EventHandler注册到事件中心
 /// 如果需要注册其他事件,则移步AddEventListener
 /// </summary>
 protected void AddDefaultEventListener(string eventKey)
 {
     Facade.AddEventListener(eventKey, EventHandler);
 }
Пример #17
0
 private void Start()
 {
     Facade.DispatchEvent(ControllerEventCodeParams.CONTROLLER_INPUT, this, controllerEventArgs);
 }
Пример #18
0
 protected void RemoveEventListener(string eventKey, Action <object, GameEventArgs> handler)
 {
     Facade.RemoveEventListener(eventKey, handler);
 }
Пример #19
0
 void SaveClick()
 {
     Facade.SaveJsonDataToLocal("Inventory", "InventoryCache.json", inventoryDataSet);
     Utility.Debug.LogInfo("SaveJsonDataToLocal");
 }