DataWorldItem.cs 795 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace KairoEngine
  5. {
  6. [System.Serializable]
  7. public class DataWorldItem
  8. {
  9. public string name;
  10. public int quantity = 1;
  11. public Vector3 position;
  12. public Quaternion rotation;
  13. public string ammoName;
  14. public int ammo;
  15. public float lastUsed;
  16. public DataWorldItem(string name, int quantity, Vector3 pos, Quaternion rotation, string ammoName, int ammo, float lastUsed)
  17. {
  18. this.name = name;
  19. this.quantity = quantity;
  20. this.position = pos;
  21. this.rotation = rotation;
  22. this.ammoName = ammoName;
  23. this.ammo = ammo;
  24. this.lastUsed = lastUsed;
  25. }
  26. }
  27. }