Ejemplo n.º 1
0
 public void OnOrePillageClick(GUIGuildMinesRecordData data)
 {
     if (this.mData.RevengeCount <= 0)
     {
         GameUIManager.mInstance.ShowMessageTipByKey("guildMines16", 0f, 0f);
         return;
     }
     MC2S_OrePillageStart mC2S_OrePillageStart = new MC2S_OrePillageStart();
     mC2S_OrePillageStart.TargetID = data.mRecord.GUID;
     mC2S_OrePillageStart.Amount = data.mRecord.PillageCount;
     mC2S_OrePillageStart.Flag = true;
     Globals.Instance.CliSession.Send(1026, mC2S_OrePillageStart);
     GameUIState uiState = GameUIManager.mInstance.uiState;
     LocalPlayer player = Globals.Instance.Player;
     uiState.PlayerLevel = player.Data.Level;
     uiState.PlayerEnergy = player.Data.Energy;
     uiState.PlayerExp = player.Data.Exp;
     uiState.PlayerMoney = player.Data.Money;
     uiState.SetOldFurtherData(player.TeamSystem.GetPet(0));
     GameUIPopupManager.GetInstance().PopState(true, null);
 }
Ejemplo n.º 2
0
 private void SendPillageMsg()
 {
     MC2S_OrePillageStart mC2S_OrePillageStart = new MC2S_OrePillageStart();
     mC2S_OrePillageStart.TargetID = this.playerID;
     mC2S_OrePillageStart.Amount = this.amount;
     mC2S_OrePillageStart.Flag = false;
     Globals.Instance.CliSession.Send(1026, mC2S_OrePillageStart);
     GameUIState uiState = GameUIManager.mInstance.uiState;
     LocalPlayer player = Globals.Instance.Player;
     uiState.PlayerLevel = player.Data.Level;
     uiState.PlayerEnergy = player.Data.Energy;
     uiState.PlayerExp = player.Data.Exp;
     uiState.PlayerMoney = player.Data.Money;
 }