public void InitWithChallenges(int newStreakChallenges, int bpms) { if (this.challengeContainer == null) { this.challengeContainer = new RhythmChallengeContainer(); } this.challengeContainer.InitWithChallenges(newStreakChallenges, bpms); }
private void Awake() { this.rhythmController = this.gameObject.GetComponent <IRhythmController>(); this.rhythmStreak = this.gameObject.GetComponent <IRhythmStreak>(); if (this.challengeContainer == null) { this.challengeContainer = new RhythmChallengeContainer(); } }