private void confirmSelection()
 {
     if (rewiredPlayer1.GetButtonDown("Confirm") || rewiredPlayer2.GetButtonDown("Confirm"))
     {
         if (menuOrder == 1)
         {
             currentState     = EndMatchState.RestartMatch;
             destinationScene = "LevelName";
             anim.SetBool("Reset", true);
             //StartCoroutine(LoadYourAsyncScene());
         }
         else if (menuOrder == 2)
         {
             currentState     = EndMatchState.ReturningToMainMenu;
             destinationScene = "TitleScreen";
             anim.SetBool("Reset", true);
             //StartCoroutine(LoadYourAsyncScene());
         }
     }
 }
    // Start is called before the first frame update
    void Start()
    {
        currentState = EndMatchState.SelectionWindow;
        menuOrder    = 1;

        //set animator
        anim = GetComponent <Animator>();

        //set selectioncolor
        if (playerwin == 1)
        {
            playerSelection.sprite = PlayerSelectionSprite[0];
        }
        if (playerwin == 2)
        {
            playerSelection.sprite = PlayerSelectionSprite[1];
        }

        rewiredPlayer1 = ReInput.players.GetPlayer(0);
        rewiredPlayer2 = ReInput.players.GetPlayer(1);
    }