Advertisement
dronkowitz

ConsumableItem.cs

Nov 4th, 2022 (edited)
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [CreateAssetMenu(fileName = "Consumable Item")]
  6. public class ConsumableItem : Item
  7. {
  8.     public Effect[] itemEffect;
  9. }
  10. public struct Effect
  11. {
  12.     public EffectType type;
  13.     public float value;
  14. }
  15. public enum EffectType
  16. {
  17.     heal,
  18.     posion,
  19.     strength
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement