public override void OnActivate(int pinID) { if (this.m_Api != null) { DebugUtility.LogError("同時に複数の通信が入ると駄目!"); } else { switch (pinID) { case 100: this.m_Api = (FlowNode_ReqWishList.ApiBase) new FlowNode_ReqWishList.Api_WishList(this); break; case 200: FriendPresentRootWindow.WantContent.ItemAccessor clickItem1 = FriendPresentRootWindow.WantContent.clickItem; FriendPresentWantWindow.Content.ItemAccessor clickItem2 = FriendPresentWantWindow.Content.clickItem; if (clickItem1 != null && clickItem2 != null) { this.m_Api = (FlowNode_ReqWishList.ApiBase) new FlowNode_ReqWishList.Api_WishListSet(this, clickItem2.presentId, clickItem1.priority); break; } break; } if (this.m_Api == null) { return; } this.m_Api.Start(); ((Behaviour)this).set_enabled(true); } }
public override void OnSuccess(WWWResult www) { if (this.m_Api == null) { return; } this.m_Api.Complete(www); this.m_Api = (FlowNode_ReqWishList.ApiBase)null; }