Exemple #1
0
        void Awake()
        {
            _Instance = this;

            //init
            var dcTimer = DCTimer.Instance;

            UnityMsgDispatcher = gameObject.AddComponent <UnityMsgDispatcher>();

            mSysManager = SystemManager.Instance;

            foreach (var gobj in NotDestroy)
            {
                DontDestroyOnLoad(gobj);
            }

            mSysManager.Awake();
        }
Exemple #2
0
 public void SetUnityMsgDispatcher(UnityMsgDispatcher dispatcher)
 {
     mUnityMsgDispatcher = dispatcher;
     mUnityMsgDispatcher.AddListener(OnReceive);
 }