/// <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); } }
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; } }
//Clones the object original and returns the clone. public static EngineObject Instantiate(EngineObject Obj) { //Todo return Obj; }