Ejemplo n.º 1
0
 public virtual void OnDisable()
 {
     ComponentPoolSystem.Unregister(this);
     if (Entity)
     {
         Entity.Registry.UnregisterECSComponent(this);
     }
     entity = null;
 }
Ejemplo n.º 2
0
 public virtual void OnEnable()
 {
     ComponentPoolSystem.Register(this);
     if (Entity)
     {
         Entity.Registry.RegisterECSComponent(this);
     }
     if (!m_initialized)
     {
         Initialize();
         m_initialized = true;
     }
 }