void Start() { //Use the Monobehaviour function "FindObjectOfType" to find the BowlingCheckListItem object in the project //Set the MaxScore variable in the BowlingCheckListItem class to the amount of pin spawn locations bowlingCheckListItem = FindObjectOfType <BowlingCheckListItem>(); bowlingCheckListItem.MaxScore = pinSpawnLocations.Length; }
void Start() { bowlingCheckListItem = FindObjectOfType <BowlingCheckListItem>(); bowlingCheckListItem.MaxScore = pinSpawnLocations.Length; }
void Start() { //this is used for putting results on the scoreboard bowlingCheckListItem = FindObjectOfType <BowlingCheckListItem>(); bowlingCheckListItem.MaxScore = pinSpawnLocations.Length; //the maximum score is the number of pin spawn locations }