protected override void OnCreatePinActive() { if (MonoSingleton <GameManager> .Instance.Player.IsHaveHealAPItems()) { base.OnCreatePinActive(); this.mHealAp = (HealAp)this.Instance.GetComponentInChildren <HealAp>(); this.mHealAp.Refresh(this.mIsQuest, this); } else { this.HealCoin(); } }
public override void OnActivate(int pinID) { if (pinID != 0) { return; } ItemData dataOfClass = DataSource.FindDataOfClass <ItemData>(((Component)this).get_gameObject(), (ItemData)null); HealAp component = (HealAp)((Component)this).get_gameObject().GetComponent <HealAp>(); if (dataOfClass == null) { return; } this.ExecRequest((WebAPI) new ReqHealAp(dataOfClass.UniqueID, component.bar.UseItemNum, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); }