private void WO_Loot_OnSpawn() { if (_resource == null) { return; } _view = _server.Room.Instantiate(_resource, _position, _rotation); _view.SubscribeToRpc(50, 52, RPC_50_52); _view.GettingPosition += View_GettingPosition; _view.GettingRotation += View_GettingRotation; _view.CheckVisibility += View_CheckVisibility; _view.RebuildVisibility(); _destroy = new AutoDestroy(this, TimeSpan.FromSeconds(Constants.LootDespawnTime)); }