public void InitInfo(GuildWarPointInfo pointInfo) { m_pointInfo = pointInfo; m_PointNameLabel.text = GuildWarInfoLogic.GetWarPointNameByType(m_pointInfo.PointType); m_PointScoreLabel.text = String.Format("+{0}", m_pointInfo.PointScore); //中立点 if (m_pointInfo.PointOwnGuildGuid == GlobeVar.INVALID_GUID) { m_StateSprite.spriteName = "daizhanling"; m_StateSprite.MakePixelPerfect(); } //本帮占领 else if (m_pointInfo.PointOwnGuildGuid == GameManager.gameManager.PlayerDataPool.GuildInfo.GuildGuid) { m_StateSprite.spriteName = "youfangzhanling"; m_StateSprite.MakePixelPerfect(); } //对方帮会占领 else { m_StateSprite.spriteName = "difangzhanling"; m_StateSprite.MakePixelPerfect(); } if (pointInfo.IsFighting) { m_FightIcon.SetActive(true); } else { m_FightIcon.SetActive(false); } }
private void OnOkFight() { if (GuildWarInfoLogic.Instance()) { CG_FIGHTGUILDWARPOINT infoPak = (CG_FIGHTGUILDWARPOINT)PacketDistributed.CreatePacket(MessageID.PACKET_CG_FIGHTGUILDWARPOINT); infoPak.SetWarType(GuildWarInfoLogic.Instance().CurWarType); infoPak.SetPointType(m_pointInfo.PointType); infoPak.SendPacket(); } }
public string GetMessageBoxStr() { switch (m_curPopMessage.MessageType) { //回应是否进副本打海选赛 case (int)GC_ASK_STARTGUILDWAR.MESSAGETYPE.STARTPREMINARY: { return(StrDictionary.GetClientDictionaryString("#{2579}")); } //回应是否进副本打海选赛 case (int)GC_ASK_STARTGUILDWAR.MESSAGETYPE.PROTECTPOINT: { string strPointName = GuildWarInfoLogic.GetWarPointNameByType(m_curPopMessage.PointType); return(StrDictionary.GetClientDictionaryString("#{2581}", strPointName)); } case (int)GC_ASK_STARTGUILDWAR.MESSAGETYPE.ROBPOINT: { string strPointName = GuildWarInfoLogic.GetWarPointNameByType(m_curPopMessage.PointType); return(StrDictionary.GetClientDictionaryString("#{2583}", strPointName)); } //回应是否接受约战 case (int)GC_ASK_STARTGUILDWAR.MESSAGETYPE.ASKCHALLENGE: { return(StrDictionary.GetClientDictionaryString("#{2610}", m_curPopMessage.ChallengeGuildName)); } //回应是否接受约战 case (int)GC_ASK_STARTGUILDWAR.MESSAGETYPE.ASKWILDWAR: { return(StrDictionary.GetClientDictionaryString("#{3118}", m_curPopMessage.ChallengeGuildName)); } } return(""); }
private void ClickPointBt() { Obj_MainPlayer _mainPlayer = Singleton <ObjManager> .GetInstance().MainPlayer; if (_mainPlayer) { //正在抢夺中 if (m_pointInfo.IsFighting) { _mainPlayer.SendNoticMsg(false, "#{2506}"); return; } //已经是本帮占领的 if (m_pointInfo.PointOwnGuildGuid == GameManager.gameManager.PlayerDataPool.GuildInfo.GuildGuid) { _mainPlayer.SendNoticMsg(false, "#{2507}"); return; } //弹出MessageBox string strPointName = GuildWarInfoLogic.GetWarPointNameByType(m_pointInfo.PointType); string dicStr = StrDictionary.GetClientDictionaryString("#{2583}", strPointName); MessageBoxLogic.OpenOKCancelBox(dicStr, "", OnOkFight, null); } }
void OnDestroy() { m_Instance = null; }
void Awake() { m_Instance = this; }