Esempio n. 1
0
    /// <summary>
    /// Changes endgame text and moves the player
    /// </summary>
    private void EndGameWin()
    {
        TeleportToArea _tp = GetComponent <TeleportToArea>();

        _tp.EnterRegion();
        m_endText.text = "You won. Thanks for playing,  Add the potion to go back to the main menu.";
    }
Esempio n. 2
0
    /// <summary>
    /// Changes endgame text and moves the player
    /// </summary>
    private void EndGameLoss()
    {
        Debug.Log("Lost Game");
        TeleportToArea _tp = GetComponent <TeleportToArea>();

        _tp.EnterRegion();
        m_endText.text = "You lost. Thanks for playing, add the potion to go back to the main menu...";
    }