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); }
void OnDestroy() { Instance = null; }