| 123456789101112131415161718192021222324252627282930313233 | 
							- 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 = "", int type = 0)
 
-         {
 
-             if (_enduringGiftBoxView == null)
 
-             {
 
-                 _enduringGiftBoxView = new EnduringGiftBoxView();
 
-             }
 
-             _enduringGiftBoxView.SetParams(itemId, count, onSuccess, message, type);
 
-             _enduringGiftBoxView.Show();
 
-         }
 
-         public static void hide()
 
-         {
 
-             if (_enduringGiftBoxView != null)
 
-             {
 
-                 _enduringGiftBoxView.Hide();
 
-             }
 
-         }
 
-         public static void Dispose()
 
-         {
 
-             _enduringGiftBoxView = null;
 
-         }
 
-     }
 
- }
 
 
  |