public void clickedPosition(int position) { deactivateItem(position); addScore(pointsPerCorrect); soundController.playAudio(position); if (position + 1 >= clickableObjects.Length) { centerItem.activate(); //CODE PORTION TO SEND INFO TO THE TUTORIAL if (isFirstTimeNormalGame()) { GetComponentInChildren <TutorialScript>().centerItemActivated(); } /////////////////////////////////////////// } else { activateNextItem(position); } //CODE PORTION TO SEND INFO TO THE TUTORIAL if (isFirstTimeNormalGame()) { GetComponentInChildren <TutorialScript>().actionItemClicked(); } /////////////////////////////////////////// }
public void clickedPosition(int position) { deactivateItem(position); //addScore(pointsPerCorrect); soundController.playAudio(position); if (position + 1 >= clickableObjects.Length) { centerItem.activate(); } else { activateNextItem(position); } }