Example #1
0
    void Awake()
    {
        Util.AutoAdjustCameraRect(bgCamera);
        Instance            = this;
        progress.fillAmount = 0;

        bgTex.sprite      = Resources.Load <Sprite>("Other/loading/login");
        progress.sprite   = Resources.Load <Sprite>("Other/loading/ui_loading_01");
        progressBg.sprite = Resources.Load <Sprite>("Other/loading/ui_loading_box");

        progress.gameObject.SetActive(false);
    }
Example #2
0
 void OnDestroy()
 {
     Instance = null;
 }