예제 #1
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            EntityManagerOld.UnregisterEntity(this);
            RemoveAllComponents(false);
        }
예제 #2
0
        protected virtual void RaiseOnComponentRemovedEvent(IComponentOld component)
        {
            if (OnComponentRemoved != null)
            {
                OnComponentRemoved(this, component);
            }

            EntityManagerOld.UpdateEntity(this);
        }
예제 #3
0
        public override void OnCreate()
        {
            base.OnCreate();

            EntityManagerOld.RegisterEntity(this);
        }
예제 #4
0
 void OnDestroy()
 {
     EntityManagerOld.UnregisterEntity(this);
 }