private void OnGetBtnClick(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); if (this.CanAllEnergyGet()) { MC2S_TakeFriendEnergy mC2S_TakeFriendEnergy = new MC2S_TakeFriendEnergy(); mC2S_TakeFriendEnergy.GUID = 0uL; Globals.Instance.CliSession.Send(321, mC2S_TakeFriendEnergy); } }
private void HandleTakeFriendEnergyCmd(CommandParser.Command param) { ulong gUID = 0uL; ulong.TryParse(param.GetParam(1), out gUID); MC2S_TakeFriendEnergy mC2S_TakeFriendEnergy = new MC2S_TakeFriendEnergy(); mC2S_TakeFriendEnergy.GUID = gUID; Globals.Instance.CliSession.Send(321, mC2S_TakeFriendEnergy); }
private void OnGetHeartBtnClick(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); if (this.IsCanGetEngery()) { MC2S_TakeFriendEnergy mC2S_TakeFriendEnergy = new MC2S_TakeFriendEnergy(); mC2S_TakeFriendEnergy.GUID = this.mFriendData.FriendData.GUID; Globals.Instance.CliSession.Send(321, mC2S_TakeFriendEnergy); } this.RefreshEngeryBtn(); }