private void OnResurrect1Click(GameObject go) { if (Tools.MoneyNotEnough(ECurrencyType.ECurrencyT_Diamond, GameConst.GetInt32(47), 0)) { return; } MC2S_WorldBossResurrect mC2S_WorldBossResurrect = new MC2S_WorldBossResurrect(); mC2S_WorldBossResurrect.Type = 1; Globals.Instance.CliSession.Send(622, mC2S_WorldBossResurrect); }
private void Awake() { this.tiemrLb = GameUITools.FindUILabel("counter", base.gameObject); GameUITools.RegisterClickEvent("desertBtn", new UIEventListener.VoidDelegate(this.OnDesertClick), base.gameObject); GameUITools.RegisterClickEvent("resurrect1Btn", new UIEventListener.VoidDelegate(this.OnResurrect1Click), base.gameObject); GameUITools.RegisterClickEvent("resurrect2Btn", new UIEventListener.VoidDelegate(this.OnResurrect2Click), base.gameObject); this.update = false; MC2S_WorldBossResurrect mC2S_WorldBossResurrect = new MC2S_WorldBossResurrect(); mC2S_WorldBossResurrect.Type = 0; Globals.Instance.CliSession.Send(622, mC2S_WorldBossResurrect); Globals.Instance.CliSession.Register(623, new ClientSession.MsgHandler(this.OnMsgWorldBossResurrect)); }