private void HandleTakeDayEnergyCmd(CommandParser.Command param) { int flag = 0; int.TryParse(param.GetParam(1), out flag); MC2S_GetDayEnergy mC2S_GetDayEnergy = new MC2S_GetDayEnergy(); mC2S_GetDayEnergy.Flag = flag; Globals.Instance.CliSession.Send(206, mC2S_GetDayEnergy); }
private void OnTakeEnergyClick(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_009"); int flag = 0; if (!this.CanTakeDayEnergy(true, out flag)) { return; } MC2S_GetDayEnergy mC2S_GetDayEnergy = new MC2S_GetDayEnergy(); mC2S_GetDayEnergy.Flag = flag; Globals.Instance.CliSession.Send(206, mC2S_GetDayEnergy); }