Exemple #1
0
        void Start()
        {
            _instance     = this;
            m_iModelIndex = m_gSPList.Length;
            m_iTexIndex   = m_tSmallBallTex.Length;
            m_TweenRot    = GetComponent <TweenRotation>();

            ResetGame_SpecialPrize();
        }
Exemple #2
0
        /// <summary>
        /// 特殊开奖_单动物(特殊动画)
        /// </summary>
        public IEnumerator SpecialPrize_SingleAnimal(int prizeIndex)
        {
            SingleSpecialPrize temp_sp = m_gSpecialPrize_AllAnimal.GetComponent <SingleSpecialPrize>();

            temp_sp.m_iPrizeIndex = prizeIndex;
            temp_sp.m_bIsOpen     = true;

            TweenRotation temp_tr = m_gSpecialPrize_AllAnimal.GetComponent <TweenRotation>();

            temp_tr.from    = new Vector3(0, 0, 0);
            temp_tr.to      = new Vector3(0, 2520, 0);
            temp_tr.enabled = true;
            temp_tr.ResetToBeginning();

            m_gSpecialEffect_Animal.SetActive(true);
            yield return(new WaitForSeconds(31f));

            m_gSpecialEffect_Animal.SetActive(false);
        }
Exemple #3
0
 void OnDestroy()
 {
     _instance = null;
 }