Esempio n. 1
0
    void GameOver()
    {
        Physics.IgnoreLayerCollision(8, 13, true);
        Physics.IgnoreLayerCollision(9, 13, true);
        Physics.IgnoreLayerCollision(10, 13, true);
        Physics.IgnoreLayerCollision(11, 13, true);

        MusicRef.StopBattleMusic();
        MusicRef.StartGameOverMusic();
        StartCoroutine(FadeIn(Canvas.transform.Find("BlackScreen").gameObject, 2f, 1f));
        StartCoroutine(PanelDelay(2f, "GameOverPanel"));
        isGameOver = true;
    }