public static void ItemEquipped(ItemEquippable item) { if (OnPlayerWieldItem != null && item.Owner.IsLocallyOwned) { currentItem = item; Debug.Log("Item equip changed---"); Debug.Log(item.ArchetypeName); Debug.Log(item.PublicName); OnPlayerWieldItem.Invoke(item); } }
public static void ItemEquipped(ItemEquippable item) { if (OnPlayerWieldItem != null && item.Owner.IsLocallyOwned) { lastWielded = currentItem; currentItem = item; Log.Debug("Item equip changed---"); Log.Debug(item.ArchetypeName); Log.Debug(item.PublicName); OnPlayerWieldItem.Invoke(item); if (currentItem.LeftHandGripTrans) { Log.Debug($"Distance from left hand align to origin = {Vector3.Distance(currentItem.LeftHandGripTrans.position, currentItem.transform.position)}"); } } }