Beispiel #1
0
 /// <summary>
 /// Removes the Component from its parent Entity.
 /// </summary>
 public void RemoveSelf()
 {
     if (Entity != null)
     {
         Entity.RemoveComponent(this);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Removes the Component from its parent Entity.
 /// </summary>
 public void RemoveSelf()
 {
     Entity?.RemoveComponent(this);
 }