コード例 #1
0
 public void ReSetLineAnim()
 {
     AnimStatus = Anim_Status.Idle;
     //開啟所有靜態圖
     for (int i = 0; i < transform.childCount; i++)
     {
         for (int j = 0; j < transform.GetChild(i).childCount; j++)
         {
             transform.GetChild(i).GetChild(j).GetComponent <UISprite>().enabled = true;
         }
     }
     //關閉動態圖
     for (int i = 0; i < Line.childCount; i++)
     {
         Line.GetChild(i).GetComponent <UISprite>().enabled           = false;
         Line.GetChild(i).GetComponent <TweenColor>().enabled         = false;
         Light.GetChild(i).GetComponent <UISprite>().enabled          = false;
         Light.GetChild(i).GetComponent <UISpriteAnimation>().enabled = false;
     }
     for (int i = 0; i < SlotPic.childCount; i++)
     {
         SlotPic.GetChild(i).GetComponent <UISprite>().enabled          = false;
         SlotPic.GetChild(i).GetComponent <UISpriteAnimation>().enabled = false;
         SlotBox.GetChild(i).GetComponent <UISprite>().enabled          = false;
         SlotBox.GetChild(i).GetComponent <UISpriteAnimation>().enabled = false;
     }
 }
コード例 #2
0
    public void PlayLineAnim(bool IsBonus)
    {
        AnimStatus = Anim_Status.Playing;
        foreach (KeyValuePair <byte, byte> item in IceAgeManager.m_BetResult.m_dicLineAward)
        {   //線跟數字的閃爍
            Line.GetChild(item.Key - 1).GetComponent <UISprite>().enabled           = true;
            Line.GetChild(item.Key - 1).GetComponent <TweenColor>().enabled         = true;
            Light.GetChild(item.Key - 1).GetComponent <UISprite>().enabled          = true;
            Light.GetChild(item.Key - 1).GetComponent <UISpriteAnimation>().enabled = true;

            PlaySlotBox(item.Key, item.Value, IsBonus);
        }
        if (!IsBonus)   //非Bonus才會顯示金錢動畫
        {
            IceAgeWinMoney.Inst.WinMoney  = IceAgeManager.m_BetResult.m_uiScore;
            IceAgeWinMoney.Inst.StartPlay = true;   //金錢動畫
        }
    }
コード例 #3
0
 public void PlayFreeGameSlotBox()
 {
     AnimStatus = Anim_Status.Playing;
     for (int i = 0; i < IceAgeManager.m_BetResult.m_byarGridSymbol.Length; i++)
     {
         if (IceAgeManager.m_BetResult.m_byarGridSymbol[i] == 9)
         {   //啟用圖片
             SlotPic.GetChild(i).GetComponent <UISprite>().enabled          = true;
             SlotPic.GetChild(i).GetComponent <UISpriteAnimation>().enabled = true;
             SlotBox.GetChild(i).GetComponent <UISprite>().enabled          = true;
             SlotBox.GetChild(i).GetComponent <UISpriteAnimation>().enabled = true;
             //關閉靜態圖
             StaticPic[i].GetComponent <UISprite>().enabled = false;
             //指定圖片  根據獎項圖片給予動畫圖名稱
             SlotPic.GetChild(i).GetComponent <UISprite>().spriteName          = "SymDM_01";
             SlotPic.GetChild(i).GetComponent <UISpriteAnimation>().namePrefix = "SymDM_";
             SlotBox.GetChild(i).GetComponent <UISprite>().spriteName          = "spbox_01";
             SlotBox.GetChild(i).GetComponent <UISpriteAnimation>().namePrefix = "spbox_";
         }
     }
 }