コード例 #1
0
ファイル: ComponentBase.cs プロジェクト: pointcache/uECS
 public virtual void OnEnable()
 {
     ComponentPoolSystem.Register(this);
 }
コード例 #2
0
ファイル: ComponentBase.cs プロジェクト: pointcache/uECS
 public virtual void OnDisable()
 {
     ComponentPoolSystem.Unregister(this);
     _entity = null;
 }