| 12345678910111213141516171819202122232425262728 | using System;namespace GFGGame{    public class BuyConfirmController : SingletonBase<BuyConfirmController>    {        private static BuyConfirmView _buyConfirmView;        public static void Show(int itemId, int count, int costId, int costCount, Action onSuccess, int times = 0, int maxTimes = 0, string message = "")        {            if (_buyConfirmView == null)            {                _buyConfirmView = new BuyConfirmView();            }            _buyConfirmView.SetParams(itemId, count, costId, costCount, onSuccess, times, maxTimes, message);            _buyConfirmView.Show();        }        public static void hide()        {            if (_buyConfirmView != null)            {                _buyConfirmView.Hide();            }        }    }}
 |