public override void OnActivate(int pinID) { if (pinID != 0 || ((Behaviour)this).get_enabled()) { return; } if (Network.Mode == Network.EConnectMode.Online) { MailData mail = MonoSingleton <GameManager> .Instance.FindMail((long)GlobalVars.SelectedMailUniqueID); if (mail == null) { ((Behaviour)this).set_enabled(false); } else { ((Behaviour)this).set_enabled(true); this.ExecRequest((WebAPI) new ReqMailSelect(mail.Find(GiftTypes.SelectArtifactItem).iname, ReqMailSelect.type.artifact, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); } } else { this.Deserialize(this.DummyResponse()); this.Success(); } }
public override void OnActivate(int pinID) { if (pinID != 0) { return; } MailData mail = MonoSingleton <GameManager> .Instance.FindMail((long)GlobalVars.SelectedMailUniqueID); if (mail == null) { ((Behaviour)this).set_enabled(false); } else { ((Behaviour)this).set_enabled(true); this.ExecRequest((WebAPI) new ReqMailSelect(mail.Find(GiftTypes.SelectConceptCardItem).iname, ReqMailSelect.type.conceptcard, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); } }