// When player selects a card, start the rhythm game public void CardSelected(RhythmCard card) { pregame.gameObject.SetActive(false); demoGameplay.startGame(card); selectedCard = card; }
// Get the story, move the score to a hardcoded position on the corner (because I'm lazy), activate the gameplay, play music public void startGame(RhythmCard card) { iScore = 0; targetActionString = card.getDescription(); actionString = ""; actionText.text = ""; score.gameObject.transform.localPosition = new Vector3(-547, 288, 0); okayButton.gameObject.SetActive(false); gameObject.SetActive(true); setContent(targetActionString); audioSource.volume = 1; audioSource.Play(); }