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