public static bool instance_exists(Type t, bool notMe = true) { if (!notMe) { return(SceneObjects.FindIndex(x => x.GetType() == t && x.Id != currentObject.Id) != -1); } return(SceneObjects.FindIndex(x => x.GetType() == t) != -1); }
public static bool instance_exists(Guid guid) { return(SceneObjects.FindIndex(x => x.Id == guid) != -1); }