InventoryModule.cs 732 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using KairoEngine.Core;
  5. using KairoEngine.Core.ModuleSystem;
  6. namespace KairoEngine.Inventory
  7. {
  8. public class InventoryModule : IGameModule
  9. {
  10. private string _name = "Inventory Module";
  11. public string name { get => _name; set => _name = value; }
  12. public GameObject itemLibraryPrefab;
  13. public void Load(Transform parent)
  14. {
  15. GameObject obj = GameObject.Instantiate(itemLibraryPrefab, parent);
  16. obj.name = obj.name.Replace("(Clone)", "");
  17. }
  18. public void Reset()
  19. {
  20. }
  21. public void Destroy()
  22. {
  23. }
  24. }
  25. }