Beispiel #1
0
 /// <summary>
 /// Destroys the object from scene
 /// </summary>
 /// <param name="Obj"></param>
 public static void Destroy(EngineObject Obj)
 {
     if (Obj != null && Obj is EngineObject)
     {
         App.listToDestroy.Add(Obj);
     }
 }
Beispiel #2
0
        internal static void RemoveObject(EngineObject Obj)
        {
            if (Obj is GameObject)
            {
                GameObject o = (GameObject)Obj;
             //               o.compList.Clear();

                o = null;
            }
            else if (Obj is Component)
            {
                Component comp = (Component)Obj;

                comp = null;
            }
        }
Beispiel #3
0
 //Clones the object original and returns the clone.
 public static EngineObject Instantiate(EngineObject Obj)
 {
     //Todo
     return Obj;
 }