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