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