Ejemplo n.º 1
0
    //打开活动  1 :超级大奖 (幸运转盘),2:天神恩赐,(摇摇乐)3:刮刮乐,(猜猜看)4,组队副本(雷达)
    public void openActivity(int acType)
    {
        switch (acType)
        {
        case 1:
            DBUIController.mDBUIInstance.HiddenFor3D_UI();
            UIBigWheel.OpenUI();
            Destroy(gameObject);
            CancelInvoke("showActivityAward");
            return;

        case 2:
            RollGambleController.CreatRollGamblePanel();
            break;

        case 3:
            UIGuaGuaLeMain.OpenUI();
            DBUIController.mDBUIInstance.HiddenFor3D_UI();
            Destroy(gameObject);
            CancelInvoke("showActivityAward");
            return;

        case 4:
            OpenRadarTeamUI();
            break;
        }

        OnCloseBtnClick();
    }
Ejemplo n.º 2
0
 public static RollGambleController CreatRollGamblePanel()
 {
     UnityEngine.Object obj = WXLLoadPrefab.GetPrefab(WXLPrefabsName.UIRollGamblePanel);
     if (obj != null)
     {
         GameObject           go      = Instantiate(obj) as GameObject;
         RollGambleController fc      = go.GetComponent <RollGambleController>();
         Transform            goTrans = go.transform;
         go.transform.parent        = DBUIController.mDBUIInstance._bottomRoot.transform;
         go.transform.localPosition = Vector3.zero;
         goTrans.localScale         = Vector3.one;
         return(fc);
     }
     return(null);
 }
Ejemplo n.º 3
0
    public static void CreatActivity(ActivityItemType type, object objPos, System.Action callback = null)
    {
        //	AbsActivity AbsA= null;
        switch (type)
        {
        case ActivityItemType.festivalItem:
            if (_ActFestivalCtrl == null)
            {
                _ActFestivalCtrl = WXLActivityFestivalController.CreateFestivalPanel(ActivityItemType.festivalItem, (GameObject)objPos);
            }
            else
            {
                _ActFestivalCtrl.gameObject.SetActive(true);
            }

            //	ActivityNetController.GetInstance().SendLoginFestival ();
            break;

        case  ActivityItemType.mosterComeItem:
            if (_ActMonsterCtrl == null)
            {
                _ActMonsterCtrl = UIActMonsterComeController.CreateMonsterPanel(ActivityItemType.mosterComeItem, (GameObject)objPos);
            }
            else
            {
                _ActMonsterCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.taobaoItem:
            if (_ActTaoBaoCtrl == null)
            {
                _ActTaoBaoCtrl = UITaoBaoController.CreateTaoBaoPanel(ActivityItemType.taobaoItem, (GameObject)objPos);
            }
            else
            {
                _ActTaoBaoCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.dinnerItem:
            if (_ActDinnerCtrl == null)
            {
                _ActDinnerCtrl = ActDinnerController.CreateDinnerPanel(ActivityItemType.dinnerItem, (GameObject)objPos);
            }
            else
            {
                _ActDinnerCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.qiandaoItem:
            if (_ActDateSignCtrl == null)
            {
                _ActDateSignCtrl = UIDateSignController.CreateUIdateSignPanel(ActivityItemType.qiandaoItem, (GameObject)objPos);
            }
            else
            {
                _ActDateSignCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.levelRewardItem:
            if (_ActLevelRewardCtrl == null)
            {
                _ActLevelRewardCtrl = UILevelRewardController.CreateUILevelRewardPanel(ActivityItemType.levelRewardItem, (GameObject)objPos, callback);
            }
            else
            {
                _ActLevelRewardCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.gonggaoItem:
            AnnounceMrg.GetInstance().SetInfoPanel(true);
            break;

        case ActivityItemType.secretShopItem:
            SecretShopMgr.GetInstance().SetSecretShop(true, 1);
            DBUIController.mDBUIInstance.HiddenFor3D_UI();
            break;

        case ActivityItemType.vipEnter:
            UIDragonMallMgr.GetInstance().SetVipLibao();
            break;

        case ActivityItemType.TreasureBoxItem:
            if (_ActTreasureBoxCtrl == null)
            {
                _ActTreasureBoxCtrl = TreasureBoxController.CreatTreasureBoxCtr();
            }
            else
            {
                _ActTreasureBoxCtrl.gameObject.SetActive(true);
            }
            break;

        case ActivityItemType.RollGamblePanel:
            RollGambleController.CreatRollGamblePanel();
            break;

        case ActivityItemType.DailyGiftPanel:
            DailyGiftController.CreatDailyGiftController();
            break;

        case ActivityItemType.DragonBank:
            DragonBankController.CreatDragonBankController();
            break;

        default:
            //	AbsA = null;
            break;
        }
    }
Ejemplo n.º 4
0
 void Awake()
 {
     instance = this;
 }