예제 #1
0
        internal static void Unregister(BoingReactor reactor)
        {
            if (OnReactorUnregister != null)
            {
                OnReactorUnregister(reactor);
            }

            s_reactorMap.Remove(reactor.GetInstanceID());
            PostUnregisterEffectorReactor();
        }
예제 #2
0
        internal static void Register(BoingReactor reactor)
        {
            PreRegisterEffectorReactor();
            s_reactorMap.Add(reactor.GetInstanceID(), reactor);

            if (OnReactorRegister != null)
            {
                OnReactorRegister(reactor);
            }
        }