コード例 #1
0
 public void playMountsHappy()
 {
     if (mountsAnimCtrl != null)
     {
         mountsAnimCtrl.playHappy();
     }
 }
コード例 #2
0
    protected override void begin()
    {
        if (isAwakeformHide)
        {
            MaskWindow.UnlockUI();
            return;
        }

        int count = ArenaFinalSampleManager.Instance.getSample(info.finalState).fightCount;

        for (int i = 0; i < count && i < buttons.Length; i++)
        {
            buttons [i].gameObject.SetActive(true);
            buttons [i].lblName.text = LanguageConfigManager.Instance.getLanguage("Arena22_" + (i + 1));

            if (i < replayInfo.winUids.Count)
            {
                string uid = replayInfo.winUids [i];
                if (uid == loser.uid)                 //ui弄反了,这里跟着反
                {
                    buttons [i].leftWin.SetActive(true);
                }
                else
                {
                    buttons [i].rightWin.SetActive(true);
                }
            }
        }

        FuBenCardCtrl anim1 = addRole(role1, winer.style);
        FuBenCardCtrl anim2 = addRole(role2, loser.style);

        if (anim1 != null)
        {
            anim1.playHappy();
        }
        if (anim2 != null)
        {
            anim2.playFail();
        }
        MaskWindow.UnlockUI();
    }