public override void OnActivate(int pinID) { UsageRateRanking component = (UsageRateRanking)((Component)this).get_gameObject().GetComponent <UsageRateRanking>(); switch (pinID) { case 1: component.OnChangedToggle(UsageRateRanking.ViewInfoType.Quest); break; case 2: component.OnChangedToggle(UsageRateRanking.ViewInfoType.Arena); break; case 3: component.OnChangedToggle(UsageRateRanking.ViewInfoType.TowerMatch); break; } pinID = pinID <= 0 || pinID > 3 ? pinID : 0; if (pinID != 0) { return; } ((Behaviour)this).set_enabled(true); this.ExecRequest((WebAPI) new ReqRanking(UsageRateRanking.ViewInfo, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); }
protected override void OnInstanceCreate() { base.OnInstanceCreate(); UsageRateRanking componentInChildren = (UsageRateRanking)this.Instance.GetComponentInChildren <UsageRateRanking>(); if (Object.op_Equality((Object)componentInChildren, (Object)null)) { return; } componentInChildren.OnChangedToggle(this.type); }