public void MCR_TotalOnlineScore(string _carName, string _score) { #region if (_OnlineResultList.Count > 0) { if (txtTime) { txtTime.text = ""; } foreach (GameObject GO in _OnlineResultList) { Destroy(GO); } _OnlineResultList.Clear(); _counter = 0; } _counter++; GameObject newScore = Instantiate(OnlineResult, resultScrollView); OnlineResult_MCR onlineResult = newScore.GetComponent <OnlineResult_MCR>(); onlineResult.txtPos.text = _counter.ToString(); onlineResult.txtName.text = _carName; onlineResult.txtTime.text = ""; onlineResult.txtPoints.text = _score; _TotalOnlineResultList.Add(newScore); #endregion }
public void MCR_InstantiateOnlineScore(string _car, string raceDuration, string _Points) { #region // Debug.Log("Here 10"); if (!b_ScoreDisplayer && carListPUN_MCR.instance.playerNameThisComputer == _car) { b_ScoreDisplayer = true; if (objStamp_01) { objStamp_01.gameObject.SetActive(true); objStamp_01.AP_LogoAnimation(); } } _counter++; GameObject newScore = Instantiate(OnlineResult, resultScrollView); OnlineResult_MCR onlineResult = newScore.GetComponent <OnlineResult_MCR>(); onlineResult.txtPos.text = _counter.ToString(); onlineResult.txtName.text = _car; onlineResult.txtTime.text = raceDuration; onlineResult.txtPoints.text = _Points; _OnlineResultList.Add(newScore); #endregion }