Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }