Ejemplo n.º 1
0
 void ShowLevelReward(string boxidx)
 {
     if (m_LevelRewardWnd == null)
     {
         if (m_isLoadLevelRewardWnd)
         {
             return;
         }
         ResLoadParams param = new ResLoadParams();
         param.info = boxidx;
         sdResourceMgr.Instance.LoadResource("UI/LevelUI/$LevelRewardWnd.prefab", LoadWnd, param);
         m_isLoadLevelRewardWnd = true;
     }
     else
     {
         WndAni.ShowWndAni(m_LevelRewardWnd, false, "sp_grey");
         //m_LevelRewardWnd.SetActive(true);
         m_CampaignMgr.ShowBoxFX(false, m_LevelRewardWnd);
         if (boxidx == "bt_reward1")
         {
             m_LevelRewardWnd.GetComponent <LevelReward>().ShowLevelRewardWnd(m_CampaignMgr.m_RewardBox1, m_CampaignMgr.m_BattleStars);
         }
         else if (boxidx == "bt_reward2")
         {
             m_LevelRewardWnd.GetComponent <LevelReward>().ShowLevelRewardWnd(m_CampaignMgr.m_RewardBox2, m_CampaignMgr.m_BattleStars);
         }
         else if (boxidx == "bt_reward3")
         {
             m_LevelRewardWnd.GetComponent <LevelReward>().ShowLevelRewardWnd(m_CampaignMgr.m_RewardBox3, m_CampaignMgr.m_BattleStars);
         }
     }
 }
Ejemplo n.º 2
0
    void onFinished()
    {
        if (bPlayForward == false)
        {
            m_CullPanel.clipping = UIDrawCall.Clipping.None;
            m_Chain1.PlayReverse();
            m_Chain2.PlayReverse();
            m_Bg.SetActive(false);
            m_Eye1.SetActive(true);
            m_Eye2.SetActive(true);
            m_CampaignMgr.ShowBoxFX(true, null);

            bPlayForward = true;
            m_bAni       = false;
            EventDelegate.Remove(m_Effect.onFinished, onFinished);
            return;
        }

        SelectDifficulty();

        // 反向播放..
        m_Effect.PlayReverse();
        bPlayForward = false;
    }