Esempio n. 1
0
        // ===================== 继承 ==================
        public override void InitUIData()
        {
            base.InitUIData();
            Inst = this;
//             BackImg = selfTransform.FindChild("BackImg").GetComponent<Image>();
//             FillImage = selfTransform.FindChild("Fill").GetComponent<Image>();
//             FillImage.fillAmount = 0;
//             if(Random.Range(0,100) %2 == 0)
//                 BackImg.sprite = Resources.Load<Sprite>(common.defaultPath + "LoadingImg_0");
//             else
//                 BackImg.sprite = Resources.Load<Sprite>(common.defaultPath + "LoadingImg_0");
            //BackImg.sprite = Resources.Load<Sprite>("UI/Sprites/LoadingImg_1");

            m_LoadSlider = selfTransform.FindChild("LoadingSlider").GetComponent <Slider>();
        }
Esempio n. 2
0
 void OnDestroy()
 {
     Inst = null;
 }