예제 #1
0
파일: Game.cs 프로젝트: cvanherk/3d-engine
 /// <summary>
 /// Als Game object ge destroyed is verwijder deze en roep on destroy aan
 /// </summary>
 /// <param name="gameObject"></param>
 private void DestroyGameObject(GameObject gameObject)
 {
     gameObject.OnDestroy();
     GameObjects.Remove(gameObject);
 }
예제 #2
0
 public void Destroy(GameObject gameObject)
 {
     gameObject.IsDestroyed = true;
 }