public void RemoveInstance(StaticObjectInstance instance)
 {
     instances.Remove(instance);
     ScapeInternal.InstancedStaticObject.removeInstance(objectPtr, instance.objectPtr);
 }
 public void AttachInstance(StaticObjectInstance instance)
 {
     instances.Add(instance);
     ScapeInternal.InstancedStaticObject.attachInstance(objectPtr, instance.objectPtr);
 }