// Called on the "Cancel" button from the "Confirm Purchase" screen.
        // Also called when the escape key is pressed.
        public void Button_Return()
        {
            // If the player was confirming the purchase...
            if (mainScript.isConfirmingPurchase)
            {
                mainScript.isConfirmingPurchase = false;

                // Here I am using my animation script to smoothly hide the "Confirm purchase" screen
                // but you can edit it to your own way
                mainScript.confirmPurchaseScreen.GetComponent <UIAnimation>().PlayAnimation("Out");
            }
            // If the player was selecting a character
            else
            {
                // Again, here I had to write a specific logic to make it work in the Example scene
                // but you can edit it to fit in your project
                mainScript.confirmPurchaseScreen.GetComponent <UIAnimation>().PlayAnimation(0);
                ScreenManager.instance.ChangeScreen(ScreenManager.Screens.MainMenu);

                // Don't edit this line
                StartCoroutine(mainScript.ReturnCoroutine());
            }
        }