OpenItemContainerCommand.cs 625 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using KairoEngine.Core;
  5. namespace KairoEngine.Inventory
  6. {
  7. public class OpenItemContainerCommand : ICommand
  8. {
  9. string title;
  10. ItemContainer itemContainer;
  11. float speed;
  12. public OpenItemContainerCommand(string title, ItemContainer itemContainer)
  13. {
  14. this.title = title;
  15. this.itemContainer = itemContainer;
  16. }
  17. public void Execute()
  18. {
  19. //Debug.Log("Opening " + title);
  20. ItemContainerEvents.Open(title, itemContainer);
  21. }
  22. }
  23. }