예제 #1
0
 internal void DelComponent(GOEBaseComponent com)
 {
     if (mListComponent.Contains(com))
     {
         mListComponent.Remove(com);
     }
 }
예제 #2
0
 internal virtual void Start()
 {
     for (int i = 0; i < mListComponent.Count; ++i)
     {
         GOEBaseComponent comp = mListComponent[i];
         comp.Start();
     }
 }
예제 #3
0
 internal virtual void OnDestroy()
 {
     for (int i = 0; i < mListComponent.Count; ++i)
     {
         GOEBaseComponent comp = mListComponent[i];
         comp.OnDestroy();
     }
     ClearList();
 }
예제 #4
0
 internal void AddComponent(GOEBaseComponent comp)
 {
     comp.Owner = this;
     mListComponent.Add(comp);
 }