Beispiel #1
0
 private void OnClickUseItem(EventContext context)
 {
     if (mData.CanUse())
     {
         Process.Instance.Player.AddItem(mData.ID, -1);
         mData.Used();
         UIManager.mEventDispatch.DispatchEvent(EventDefine.UPDATE_BAG_UI);
         Process.Instance.Saved();
     }
 }