Hi I’m new to programming in unity and I need some help. I’m trying to create an array that holds in text and only one of the texts in the array is enabled (SetActive) once I have clicked the left mouse button the current text that will be disabled and the next text in the array is going to be enabled but I’m having trouble with that this is what I have got so far:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Tutorial : MonoBehaviour {
[SerializeField] GameObject[] tutorialText;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
int tutorialTextLength = tutorialText.Length;
int textIndex = tutorialTextLength;
if(Input.GetMouseButtonDown(0))
{
}
}
}
PLEASE HELP
So I basically reference my score method then, correct?
– Caldera12