Key.cs 535 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using UnityEngine;
  3. namespace DunGen
  4. {
  5. [Serializable]
  6. public sealed class Key
  7. {
  8. public int ID
  9. {
  10. get { return id; }
  11. set { id = value; }
  12. }
  13. public string Name
  14. {
  15. get { return name; }
  16. internal set { name = value; }
  17. }
  18. public GameObject Prefab;
  19. public Color Colour;
  20. public IntRange KeysPerLock = new IntRange(1, 1);
  21. [SerializeField]
  22. private int id;
  23. [SerializeField]
  24. private string name;
  25. internal Key(int id)
  26. {
  27. this.id = id;
  28. }
  29. }
  30. }