DressUpRemoveOperation.cs 922 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using UnityEngine;
  2. using YooAsset;
  3. namespace GFGGame
  4. {
  5. public class DressUpRemoveOperation : DressUpOperationBase
  6. {
  7. private int itemID;
  8. private GameObject sceneObj;
  9. private GameObject parentObj;
  10. public DressUpRemoveOperation(int itemID, GameObject sceneObj, GameObject parentObj)
  11. {
  12. this.itemID = itemID;
  13. this.sceneObj = sceneObj;
  14. this.parentObj = parentObj;
  15. }
  16. internal override void Release()
  17. {
  18. this.sceneObj = null;
  19. this.parentObj = null;
  20. }
  21. internal override void Start()
  22. {
  23. Status = EOperationStatus.Succeed;
  24. }
  25. internal override void Update()
  26. {
  27. }
  28. internal override void UpdateView()
  29. {
  30. DressUpUtil.RemoveItem(this.itemID, this.sceneObj, this.parentObj);
  31. }
  32. }
  33. }