/// <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."; }
/// <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..."; }