Exemplo n.º 1
0
 void onPressHero(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_hero");
     }
 }
Exemplo n.º 2
0
    public virtual void show(PopupData pd, string msg = "")
    {
        container.SetActive(true);
        gameObject.SetActive(true);

        popupData = pd;

        if (lbMsg != null)
        {
            lbMsg.text = msg;
        }

        switch (popupSize)
        {
        case PopupSize.Big:
            SoundData.play("uicm_popup_big");
            break;

        case PopupSize.Middle:
            SoundData.play("uicm_popup_mid");
            break;

        case PopupSize.Small:
            SoundData.play("uicm_popup_sml");
            break;
        }

        if (popupPanel != null && useScaleTween && Time.timeScale >= 1.0f)
        {
            if (ani != null)
            {
                ani.Play();
            }
        }
    }
Exemplo n.º 3
0
 void onPressSkill(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_skillrune");
     }
 }
Exemplo n.º 4
0
 void onPressSummon(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_unitrune");
     }
 }
Exemplo n.º 5
0
 void onPressMission(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_ms");
     }
 }
Exemplo n.º 6
0
 void onPressShop(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_shop");
     }
 }
Exemplo n.º 7
0
 void onPressStart(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_world");
     }
 }
Exemplo n.º 8
0
 void onPressFriend(GameObject go, bool state)
 {
     if (state == true)
     {
         SoundData.play("uibt_friend");
     }
 }
Exemplo n.º 9
0
    public override void show()
    {
        base.show();

        SoundData.play("uirn_runepopup");

        btnSort.gameObject.SetActive(true);

        popupSort.hide();

        setMode(Mode.Normal);

        selectSlot = null;

        updateGold();
        updateRuby();
        updateRuneStone();

        tabPlayer.tabChangeDispatcher -= changePlayerTab;
        tabPlayer.tabChangeDispatcher += changePlayerTab;
        tabPlayer.init(GameIDData.Type.Skill);


        refreshSort();
        refreshMySkills();
        refreshSkillInven(true);

        reinforcePanel.hide();
        composePanel.hide();
        sellPanel.hide();

        TutorialManager.instance.check("T37");

//		if(GameDataManager.instance.historySkillRunes == null) EpiServer.instance.sendSkillRuneHistory();
    }
    public void onCompleteShowAni(int slotIndex)
    {
        if (_isRewardMotion)
        {
            SoundData.play("uirf_impact_old");

            _rewardSlots[slotIndex].gameObject.SetActive(true);
            if (_rewardSlots[slotIndex].particle != null)
            {
                _rewardSlots[slotIndex].particle.gameObject.SetActive(true);
                _rewardSlots[slotIndex].particle.Play();
            }
        }
        else
        {
            _levelupSlots[slotIndex].gameObject.SetActive(true);
            if (_levelupSlots[slotIndex].itemSlot.particle != null)
            {
                _levelupSlots[slotIndex].itemSlot.particle.gameObject.SetActive(true);
                _levelupSlots[slotIndex].itemSlot.particle.Play();
            }
        }


        _isPlayingEffect = false;
    }
Exemplo n.º 11
0
    public virtual void show()
    {
        checkInitUI();

        gameObject.SetActive(true);

        if (popupPanel != null && useScaleTween && ani != null && Time.timeScale >= 1.0f)
        {
            ani.Play();
        }

        switch (popupSize)
        {
        case PopupSize.Big:
            SoundData.play("uicm_popup_big");
            break;

        case PopupSize.Middle:
            SoundData.play("uicm_popup_mid");
            break;

        case PopupSize.Small:
            SoundData.play("uicm_popup_sml");
            break;
        }
    }
Exemplo n.º 12
0
 void onClose(GameObject go)
 {
     SoundData.play(closeSound);
     GameManager.me.clearMemory();
     hide();
     GameManager.me.uiManager.uiMenu.uiWorldMap.checkTutorialStart(false);
 }
Exemplo n.º 13
0
    public void onClickBtnWear(GameObject go)
    {
        if (btnClose.gameObject.activeSelf == false)
        {
            return;
        }
        switch (data.partsData.type)
        {
        case HeroParts.HEAD:
            SoundData.play("uihe_attach_hat");
            break;

        case HeroParts.BODY:
            SoundData.play("uihe_attach_amr");
            break;

        case HeroParts.WEAPON:
            SoundData.play("uihe_attach_wpn");
            break;

        case HeroParts.VEHICLE:
            SoundData.play("uihe_attach_pet");
            break;
        }

        hide();
        EpiServer.instance.sendChangeEquip(data.serverId);
    }
Exemplo n.º 14
0
 public virtual void onPressBackToMainMenu(GameObject go, bool state)
 {
     if (state)
     {
         SoundData.play("uibt_back");
     }
 }
Exemplo n.º 15
0
 public static void playBattleBGM()
 {
     if (nowPlayingBattleBgm == null)
     {
         return;
     }
     SoundData.play(nowPlayingBattleBgm);
 }
Exemplo n.º 16
0
    IEnumerator onAniSound(float soundDelay, string soundId)
    {
        yield return(new WaitForSeconds(soundDelay));

        if (_isEnabled)
        {
            SoundData.play(soundId);
        }
    }
 void playCast2()
 {
     if (GameManager.me != null)
     {
         SoundData.play("uigt_cast2");
     }
     else
     {
         playSound("uigt_cast2");
     }
 }
Exemplo n.º 18
0
 public void playSound(bool isUp)
 {
     if (isUp)
     {
         SoundData.play(soundUp);
     }
     else
     {
         SoundData.play(soundDown);
     }
 }
 void playDelayComposeCardSound()
 {
     if (GameManager.me != null)
     {
         SoundData.play("uicm_cards");
     }
     else
     {
         playSound("uicm_cards");
     }
 }
 void playImpactSound()
 {
     if (GameManager.me != null)
     {
         SoundData.play("uirf_impact");
     }
     else
     {
         playSound("uirf_impact");
     }
 }
    public void onClickCancelSub(GameObject go)
    {
        SoundData.play("uihe_changehero");

        if (GameDataManager.instance.serverHeroData.Count == 1)
        {
            return;
        }

        EpiServer.instance.sendChangeHero(GameDataManager.instance.selectHeroId, string.Empty);
    }
Exemplo n.º 22
0
    void onPressOpenShop(GameObject go, bool state)
    {
        if (GameManager.me.uiManager.uiLoading.gameObject.activeSelf)
        {
            return;
        }

        if (state)
        {
            SoundData.play("uibt_shop");
        }
    }
Exemplo n.º 23
0
    void refreshList()
    {
        SoundData.play("uirn_arrange");

        for (int i = 0; i < buttons.Length; ++i)
        {
            buttons[i].value            = (buttons[i].name == list.sortType);
            buttons[i].collider.enabled = (buttons[i].name != list.sortType);
        }

        list.draw();
    }
 void playBreakSound()
 {
     // uicp_break : A급이상 연출스타트시 <WMV>
     if (GameManager.me != null)
     {
         SoundData.play("uicp_break");
     }
     else
     {
         playSound("uicp_break");
     }
 }
Exemplo n.º 25
0
    void onPressChampionship(GameObject go, bool state)
    {
        if (GameManager.me.uiManager.uiLoading.gameObject.activeSelf)
        {
            return;
        }

        if (state)
        {
            SoundData.play("uibt_gamemode");
        }
    }
Exemplo n.º 26
0
    IEnumerator startEndEffect()
    {
        int index = 0;

        while (true)
        {
            goOnEffectBorderContainer.SetActive(index % 2 == 0);
            ++index;
            if (index > 6)
            {
                break;
            }
            yield return(Util.ws01);
        }

        isReady = true;

        GameManager.soundManager.stopLoopEffect();

        SoundData.play("uifr_bonusstop");

        GameManager.me.uiManager.uiMenu.uiFriend.btnReceiveBonus.isEnabled = (GameDataManager.instance.friendPoint >= GameDataManager.instance.slotMachinePrice);

        if (TutorialManager.instance.isTutorialMode == false)
        {
            UISystemPopup.checkLevelupPopupWithoutCallback();
        }

        GameManager.me.uiManager.uiMenu.uiFriend.btnBack.isEnabled   = true;
        GameManager.me.uiManager.uiMenu.uiFriend.btnInvite.isEnabled = true;

        GameManager.me.uiManager.uiMenu.uiFriend.lbSlotMachinePrice.text = Util.GetCommaScore(GameDataManager.instance.slotMachinePrice);

        if (receiveReward.code == WSDefine.REWARD_TYPE_ITEM || receiveReward.code == WSDefine.REWARD_TYPE_GACHA)
        {
            RuneStudioMain.instance.playMakeResult(new string[] { receiveReward.itemId }, false);
        }
        else if (receiveReward.code == WSDefine.REWARD_TYPE_RUNE)
        {
            RuneStudioMain.instance.playMakeResult(new string[] { slotMachinePacketInfo.rewardItem }, false);
        }
        else
        {
            GameManager.me.uiManager.rewardNotice.start(true, receiveReward);
        }

        if (TutorialManager.nowPlayingTutorial("T15", 4))
        {
            TutorialManager.instance.subStep = 6;
            EpiServer.instance.sendCompleteTutorial("T15");
        }
    }
    IEnumerator playDelaySoundCT(string id, float delay)
    {
        yield return(new WaitForSeconds(delay));

        if (GameManager.me != null)
        {
            SoundData.play(id);
        }
        else
        {
            playSound(id);
        }
    }
 void onClickChloe(GameObject go)
 {
     if (GameDataManager.instance.heroes.ContainsKey(Character.CHLOE))
     {
         SoundData.play("uihe_changehero");
         setCharacter(Character.CHLOE);
         //EpiServer.instance.sendChangeHero(Character.CHLOE, true) ;
     }
     else
     {
         UISystemPopup.open(UISystemPopup.PopupType.YesNoPrice, Util.getUIText("BUY_HERO", Util.getUIText("CHLOE")), onBuyChloe, null, GameDataManager.instance.heroPrices[Character.CHLOE].ToString());
     }
 }
 public void onCompleteMakeDOpen()
 {
             #if UNITY_EDITOR
     Debug.Log("onCompleteMakeDOpen");
             #endif
     if (GameManager.me != null)
     {
         SoundData.play("uicm_result1");
     }
     else
     {
         playSound("uicm_result1");
     }
 }
    public void onStartEvolveShotC()
    {
                #if UNITY_EDITOR
        Debug.Log("onStartEvolveShotC");
                #endif

        if (GameManager.me != null)
        {
            SoundData.play("ui_evolve_shot");
        }
        else
        {
            playSound("ui_evolve_shot");
        }
    }