Beispiel #1
0
        /// <summary>
        /// Occurs when the button is clicked.
        /// </summary>
        /// <param name="eventData">The data on the click event.</param>
        public void OnPointerClick(PointerEventData eventData)
        {
            IStallSpaceInformation selectedStallSpace = UIManager.instance.SelectedStallSpace.GetComponent <IStallSpaceInformation>();

            // Inform the next scene on what stallspace will be affected by the purchase.
            PurchaseInformation.StallToAffect = selectedStallSpace.StallSpaceNumber;
            PurchaseInformation.Type          = PurchaseType.UpgradeStall;
            SceneManager.LoadScene("PurchaseScene");
        }
Beispiel #2
0
        /// <summary>
        /// Occurs when the button is clicked.
        /// </summary>
        /// <param name="eventData">The data on the click event.</param>
        public void OnPointerClick(PointerEventData eventData)
        {
            IStallSpaceInformation selectedStallSpace = UIManager.instance.SelectedStallSpace.GetComponent <IStallSpaceInformation>();

            // Inform the next scene on what stallspace will be affected by the purchase.
            PurchaseInformation.StallToAffect = selectedStallSpace.StallSpaceNumber;
            PurchaseInformation.Type          = PurchaseType.BuyStall;

            if (ProgressManager.TutorialMode)
            {
                SceneManager.LoadScene("TutorialPurchaseScene");
            }
            else
            {
                SceneManager.LoadScene("PurchaseScene");
            }
        }