/* * Detach cube from any player who is holding it (local or remote). */ public void Release() { if (!HasHolder()) { return; } if (localAvatar) { localAvatar.DetachCube(ref localHand); touching.GetComponent <BoxCollider>().isTrigger = true; } if (remoteAvatar) { remoteAvatar.DetachCube(ref remoteHand); } localAvatar = null; localHand = null; remoteHand = null; remoteAvatar = null; holderId = Nobody; }