Exemple #1
0
    public void OnTriggerEnter(Collider other)
    {
        //Display the win canvas
        TestItOutText.SetActive(false);
        WinCanvas.SetActive(true);

        PauseGame.GameWin();
    }
Exemple #2
0
    public void OnTriggerEnter(Collider other)
    {
        Debug.Log("You win");

        if (sceneName == "Level01")
        {
            Debug.Log("Set L1 HS");
            BM.SetLevel01HighScore();
        }

        else if (sceneName == "Level02Prototype")
        {
            Debug.Log("Set L2 HS");
            BM.SetLevel02Highscore();
        }

        //Display the win canvas
        WinCanvas.SetActive(true);

        PauseGame.GameWin();
    }