| 1234567891011121314151617181920212223242526272829303132 | using System;namespace GFGGame{    public class EnduringGiftBoxController : SingletonBase<EnduringGiftBoxController>    {        private static EnduringGiftBoxView _enduringGiftBoxView;        public static void Show(int itemId, int count, Action onSuccess = null, string message = "")        {            if (_enduringGiftBoxView == null)            {                _enduringGiftBoxView = new EnduringGiftBoxView();            }            _enduringGiftBoxView.SetParams(itemId, count, onSuccess, message);            _enduringGiftBoxView.Show();        }                public static void hide()        {            if (_enduringGiftBoxView != null)            {                _enduringGiftBoxView.Hide();            }        }        public static void Dispose()        {            _enduringGiftBoxView = null;        }    }}
 |