public GameObject MakeSceneObject(GameObject obj) //only used to track all objects related to this scene in the List SceneObjects, doesn't do much more. { if (SceneObjects == null) SceneObjects = new List<GameObject>(); SceneObjects.Add(obj); obj.baseScene = this; obj.destroyed = false; return obj; }
public Renderer(GameObject owner) { this.owner = owner; }
public Transform(GameObject owner) { this.owner = owner; }
public void DeleteSceneObject(GameObject obj) { SceneObjects.Remove(obj); obj.Destroy(); }
public virtual void OnCollision(GameObject other) { }
public void Collide(GameObject other) { OnCollision(other); }