Esempio n. 1
0
    public void HandleLevelCreationStart(LevelCreationStartEvent e)
    {
        if (upTempoMusic != null && upTempoMusic.clip != null)
        {
            // Debug.Log("Stopping Uptempo");
            upTempoMusic.Stop();
        }

        if (downTempoMusic != null && downTempoMusic.clip != null)
        {
            if (!downTempoMusic.isPlaying)
            {
                // Debug.Log("Starting Downtempo");
                downTempoMusic.Play();
            }
        }
    }
Esempio n. 2
0
    public void HandleDogSequenceEnd(LevelCreationStartEvent e)
    {
        if (currentPlayer == 1)
        {
            if (!(currentLevel == levels.Count - 1))
            {
                Destroy(levels[currentLevel]);
                currentLevel++;
                levels[currentLevel].SetActive(true);
            }
            else
            {
                Debug.Log("game is over yo");
            }
        }

        InitializeStartingPath();
    }
Esempio n. 3
0
 public void HandleLevelCreationStartEvent(LevelCreationStartEvent e)
 {
     GetComponent <CanvasGroup>().interactable = true;
 }
Esempio n. 4
0
 public void HandleLevelCreationStart(LevelCreationStartEvent e)
 {
     LerpToLevelCreationStart();
 }
Esempio n. 5
0
 public void HandleLevelCreationStart(LevelCreationStartEvent e)
 {
     InitPurchasingStage();
 }