Exemplo n.º 1
0
 private void OnSendBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (Globals.Instance.Player.FriendSystem.PendingGiveFriendEnergy > 0)
     {
         MC2S_GiveFriendEnergy mC2S_GiveFriendEnergy = new MC2S_GiveFriendEnergy();
         mC2S_GiveFriendEnergy.GUID = 0uL;
         Globals.Instance.CliSession.Send(319, mC2S_GiveFriendEnergy);
     }
 }
Exemplo n.º 2
0
 private void HandleGiveFriendEnergyCmd(CommandParser.Command param)
 {
     ulong gUID = 0uL;
     ulong.TryParse(param.GetParam(1), out gUID);
     MC2S_GiveFriendEnergy mC2S_GiveFriendEnergy = new MC2S_GiveFriendEnergy();
     mC2S_GiveFriendEnergy.GUID = gUID;
     Globals.Instance.CliSession.Send(319, mC2S_GiveFriendEnergy);
 }
Exemplo n.º 3
0
 private void OnSendHeartBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (this.IsCanSendEngery())
     {
         MC2S_GiveFriendEnergy mC2S_GiveFriendEnergy = new MC2S_GiveFriendEnergy();
         mC2S_GiveFriendEnergy.GUID = this.mFriendData.FriendData.GUID;
         Globals.Instance.CliSession.Send(319, mC2S_GiveFriendEnergy);
     }
     this.RefreshEngeryBtn();
 }