Example #1
0
        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;
        }
Example #2
0
 public Renderer(GameObject owner)
 {
     this.owner = owner;
 }
Example #3
0
 public Transform(GameObject owner)
 {
     this.owner = owner;
 }
Example #4
0
 public void DeleteSceneObject(GameObject obj)
 {
     SceneObjects.Remove(obj);
     obj.Destroy();
 }
Example #5
0
 public virtual void OnCollision(GameObject other) { }
Example #6
0
 public void Collide(GameObject other)
 {
     OnCollision(other);
 }