private void OnBattleScoreChange(ref SCampScoreUpdateParam param) { if (this._root == null) { this.Clear(); } else if (param.HeadPoints >= 0) { SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext(); if (param.CampType == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { if (curLvelContext.m_headPtsUpperLimit > 0) { this._campScoreText_1.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_FireHole_1"), param.HeadPoints, curLvelContext.m_headPtsUpperLimit); } else { this._campScoreText_1.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_Normal_1"), param.HeadPoints); } } else if (param.CampType == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { if (curLvelContext.m_headPtsUpperLimit > 0) { this._campScoreText_2.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_FireHole_2"), param.HeadPoints, curLvelContext.m_headPtsUpperLimit); } else { this._campScoreText_2.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_Normal_2"), param.HeadPoints); } } } }
private void OnBattleScoreChange(ref SCampScoreUpdateParam param) { if (!this._root) { this.Clear(); return; } if (param.HeadPoints < 0) { return; } SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext(); if (param.CampType == 1) { if (curLvelContext.m_headPtsUpperLimit > 0) { this._campScoreText_1.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_FireHole_1"), param.HeadPoints, curLvelContext.m_headPtsUpperLimit); } else { this._campScoreText_1.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_Normal_1"), param.HeadPoints); } } else if (param.CampType == 2) { if (curLvelContext.m_headPtsUpperLimit > 0) { this._campScoreText_2.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_FireHole_2"), param.HeadPoints, curLvelContext.m_headPtsUpperLimit); } else { this._campScoreText_2.text = string.Format(Singleton <CTextManager> .GetInstance().GetText("ScoreBoard_Normal_2"), param.HeadPoints); } } }