Esempio n. 1
0
        internal static void Unregister(BoingBehavior behavior)
        {
            if (OnBehaviorUnregister != null)
            {
                OnBehaviorUnregister(behavior);
            }

            s_behaviorMap.Remove(behavior.GetInstanceID());
            PostUnregisterBehavior();
        }
Esempio n. 2
0
        internal static void Register(BoingBehavior behavior)
        {
            PreRegisterBehavior();
            s_behaviorMap.Add(behavior.GetInstanceID(), behavior);

            if (OnBehaviorRegister != null)
            {
                OnBehaviorRegister(behavior);
            }
        }