Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class Item : MonoBehaviour
- {
- public string itemName;
- public bool isTwoHanded;
- public bool isStorageItem;
- public int storageCapacity;
- public Sprite icon;
- // Separate offsets for left and right hands
- public Vector3 leftPositionOffset = Vector3.zero;
- public Vector3 leftRotationOffset = Vector3.zero;
- public Vector3 rightPositionOffset = Vector3.zero;
- public Vector3 rightRotationOffset = Vector3.zero;
- // Edible item properties
- public bool isEdible = false;
- public float healthEffect = 0f;
- public float hydrationEffect = 0f;
- public float calorieEffect = 0f;
- public virtual void Use()
- {
- Debug.Log($"Using {itemName}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement