protected void SpawnGameObjectForPlayer(WearableItemHandler wearableItemHandler) { _wearableItemHandler = wearableItemHandler; WearableIte_SO item_SO = (WearableIte_SO)_wearableItemHandler.Item_SO; Transform itemHandlerTransform = _wearableItemHandler.GameObjectForPlayer.transform; itemHandlerTransform.SetParent(_itemParent); itemHandlerTransform.localPosition = item_SO.playerGameObjectSpawnOffset; itemHandlerTransform.localRotation = Quaternion.identity; _wearableItemHandler.GameObjectForPlayer.SetActive(false); }
public override void Use(ClientSession Session, ref Inventory Inv) { WearableItemHandler instance = new WearableItemHandler(); instance.UseItemHandler(ref Inv, Session, Effect, EffectValue); }
private void DeactivateWeapon() { _wearableItemHandler.GameObjectForPlayer.SetActive(false); _wearableItemHandler = null; }