|
@@ -149,8 +149,8 @@ namespace GFGGame
|
|
|
private void UpdateQuestion()
|
|
|
{
|
|
|
// _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
|
|
|
- _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
|
|
|
- _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
|
|
|
+ _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars(); ;
|
|
|
+ _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars(); ;
|
|
|
_ui.m_ctrlQuestionState.selectedIndex = 0;
|
|
|
int questionId = (int)_dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionId);
|
|
|
LeagueQuestionCfg questionCfg = LeagueQuestionCfgArray.Instance.GetCfg(questionId);
|
|
@@ -169,7 +169,7 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_listResult.numItems = questionCfg.answerArr.Length;
|
|
|
}
|
|
|
- _ui.m_txtAnswerTime.text = "";
|
|
|
+ _ui.m_txtAnswerTime.text = GlobalCfgArray.globalCfg.leagueQuestionRunTime.ToString();
|
|
|
|
|
|
Timers.inst.Remove(UpdateAnswerTime);
|
|
|
Timers.inst.Add(1, 0, UpdateAnswerTime);
|
|
@@ -190,10 +190,11 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateResult()
|
|
|
{
|
|
|
- // _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
|
|
|
+ _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
|
|
|
// _ui.txtRightCount1.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
|
|
|
- _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
|
|
|
- _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
|
|
|
+ _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars();
|
|
|
+ _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars();
|
|
|
+ _ui.m_txtCdTime.SetVar("value", GlobalCfgArray.globalCfg.leagueQuestionNextTime.ToString()).FlushVars();
|
|
|
_ui.m_ctrlQuestionState.selectedIndex = 1;
|
|
|
_ui.m_ctrlResult.selectedIndex = _dataManager.LastAnswerRoleData.LastQuestionResult;
|
|
|
if (_dataManager.LastAnswerRoleData.LastQuestionResult == LastQuestionResult.SomeBodyRight)
|
|
@@ -240,7 +241,7 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
// _ui.m_txtTime.text = (endTime - curTime) / 1000 + "秒后开始下一题";
|
|
|
- _ui.m_txtCdTime.SetVar("value", ((endTime - curTime) / 1000).ToString());
|
|
|
+ _ui.m_txtCdTime.SetVar("value", (((endTime - curTime) / 1000) + 1).ToString()).FlushVars();
|
|
|
|
|
|
}
|
|
|
private void UpdateJoinList()
|
|
@@ -277,7 +278,7 @@ namespace GFGGame
|
|
|
{
|
|
|
GObject obj = context.sender as GObject;
|
|
|
string answer = obj.data.ToString();
|
|
|
- ChatSProxy.ReqSendChatMsg(ChatType.LeagueQuestion, answer).Coroutine();
|
|
|
+ // ChatSProxy.ReqSendChatMsg(ChatType.LeagueQuestion, answer).Coroutine();
|
|
|
int questionId = (int)_dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionId);
|
|
|
LeagueQuestionCfg cfg = LeagueQuestionCfgArray.Instance.GetCfg(questionId);
|
|
|
bool result = await LeagueSproxy.ReqAnswerQuestion(questionId, answer);
|