12345678910111213141516171819202122232425262728293031323334353637383940 |
- using UnityEngine;
- using YooAsset;
- namespace GFGGame
- {
- public class DressUpRemoveOperation : DressUpOperationBase
- {
- private int itemID;
- private GameObject sceneObj;
- private GameObject parentObj;
- public DressUpRemoveOperation(int itemID, GameObject sceneObj, GameObject parentObj)
- {
- this.itemID = itemID;
- this.sceneObj = sceneObj;
- this.parentObj = parentObj;
- }
- internal override void Release()
- {
- this.sceneObj = null;
- this.parentObj = null;
- }
- internal override void Start()
- {
- Status = EOperationStatus.Succeed;
- }
- internal override void Update()
- {
-
- }
- internal override void UpdateView()
- {
- DressUpUtil.RemoveItem(this.itemID, this.sceneObj, this.parentObj);
- }
- }
- }
|