Exemplo n.º 1
0
        internal static EntityBase Get(IntPtr entityPointer)
        {
            var entity = ScriptManager.Instance.Find <EntityBase>(ScriptType.Entity, x => x.EntityHandle == entityPointer);

            if (entity != null)
            {
                return(entity);
            }

            return(CreateNativeEntity(NativeEntityMethods.GetEntityId(entityPointer), entityPointer));
        }