whole buncha stuff
This commit is contained in:
@@ -21,9 +21,16 @@ public class NoPointsController : UdonSharpBehaviour
|
||||
public NoPointsScreen noPointsScreen;
|
||||
|
||||
public NoPointsMeter noPointsMeter;
|
||||
public GameObject resetMeterButton;
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (!Networking.IsOwner(this.gameObject))
|
||||
{
|
||||
this.gameObject.SetActive(false);
|
||||
resetMeterButton.SetActive(false);
|
||||
}
|
||||
|
||||
for (int i = 0; i < noPointsManager.questions.Length; i++)
|
||||
{
|
||||
NoPointsQuestion question = noPointsManager.questions[i];
|
||||
@@ -75,7 +82,7 @@ public class NoPointsController : UdonSharpBehaviour
|
||||
answerInfoRow.noPointsMeter = noPointsMeter;
|
||||
}
|
||||
|
||||
for (int i = 0; i < question.answerText.Length; i++)
|
||||
for (int i = 0; i < Mathf.Min(question.answerText.Length, question.answerPoints.Length); i++)
|
||||
{
|
||||
GameObject answerRowObj = Instantiate(answerRowPrefab, answerListContainer.transform);
|
||||
NoPointsAnswerRow answerRow = answerRowObj.GetComponent<NoPointsAnswerRow>();
|
||||
|
||||
Reference in New Issue
Block a user