12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System;
- using ET;
- public class CommonBridge
- {
- private static CommonBridge _instance;
- public static CommonBridge Instance
- {
- get
- {
- if (_instance == null)
- {
- _instance = new CommonBridge();
- }
- return _instance;
- }
- }
- public event Action<Scene,object> dispathPush;
- public void SetDispathPush(Scene scene,object type)
- {
- if(dispathPush != null)
- {
- dispathPush(scene,type);
- }
- }
-
- public void Clear()
- {
- if (dispathPush != null) dispathPush = null;
- Log.Debug("clear");
- }
- }
|