Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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
 }