Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static bool instance_exists(Guid guid)
 {
     return(SceneObjects.FindIndex(x => x.Id == guid) != -1);
 }