Exemplo n.º 1
0
    void AddScroll()
    {
        _numScrolls += 1;
        if (_numScrolls >= RequiredScrolls)
        {
            EventController.PlayFinaleEvent();
        }
        switch (_numScrolls)
        {
        case 1:
            MapScrollOff1.gameObject.SetActive(false);
            MapScrollOn1.gameObject.SetActive(true);
            break;

        case 2:
            MapScrollOff2.gameObject.SetActive(false);
            MapScrollOn2.gameObject.SetActive(true);
            break;

        case 3:
            MapScrollOff3.gameObject.SetActive(false);
            MapScrollOn3.gameObject.SetActive(true);
            break;

        default:
            break;
        }

        _audioSource.PlayOneShot(PickupMap, 0.8f);
    }
 void Update()
 {
     _lanternFixTimer -= Time.deltaTime;
     if (_lanternFixTimer <= 0.0f && !GameStarted)
     {
         Time.timeScale = 0.0f;
     }
     if (!_skipped)
     {
         UIManagerRef.OnClickStartFromMenu();
         UIManagerRef.OnClickStartFromFTUE();
         MapGeneratorRef.MoveBoatToQuadrant();
         RECRef.PlayFinaleEvent();
         PlayerRef.AddSpirit();
         PlayerRef.AddSpirit();
         PlayerRef.AddSpirit();
         _skipped = true;
     }
 }