示例#1
0
    // PUBLIC METHODS
    // -------------------------------------------------------------------------

    public void OnNotification(Notification notification)
    {
        switch (notification.type)
        {
        case Notification.Type.LEVEL_CLEARED:
            isPaused = true;
            m_sounds.PlayLevelCleared();
            m_scenes.StartTransitionToNextSceneWithDelay(1f);
            break;

        case Notification.Type.SCENE_REVEAL_COMPLETE:
            isPaused = false;
            break;

        case Notification.Type.SCENE_HIDE_COMPLETE:
            m_scenes.LoadNextScene();
            break;
        }
    }