Exemple #1
0
 /// Trigger the unlock of the node
 ///
 public void TriggerUnlock()
 {
     if (m_levelService.HasLevel(LevelModel.m_index) == true)
     {
         m_fsm.ExecuteAction(k_actionUnlock);
     }
 }
Exemple #2
0
        /// Called when the player presses the Next button
        ///
        private void OnNextRequested()
        {
            m_audioService.PlaySFX(AudioIdentifiers.k_sfxButtonPositive);

            if (m_levelService.HasLevel(s_levelData.m_index) == true)
            {
                OnLoadRequested(s_levelData.m_index + 1);
            }
        }