private void RegisterObject(HoloNetObjectId oid, HoloNetObject obj) { _netObjects.Add(oid, obj); }
public void ForceDestroyNetObject(HoloNetObject holoNetObject) { DestroyObject(holoNetObject); }
private void DestroyObject(HoloNetObject obj) { obj.OnNetDestroy(); _netObjects.Remove(obj.oid); Object.Destroy(obj.gameObject, 0f); }
public void DestroyNetObject(HoloNetObject obj) { HoloNetAppModule.instance.messenger .SendMessage(NetObjectDestroyMessage.Create(obj.oid), DestinationGroup.All, true); }