/// <summary> /// Notify GameManager that another roller finished it's job /// </summary> public void RollerFinished() { // Increment the number of rollers that finished finishedRolling++; // Check if all rollers finished their job and if so calculate score if (finishedRolling == numberOfSlotRollers) { scoreUpdateScript.UpdateScore(); finishedRolling = 0; } }
void Update() { // Send the dna value to be updated to the update script sUpdate.UpdateScore(dna.GetScore()); }