//**************************************************************************************************** // //**************************************************************************************************** public void Awake() { if (m_instance == null) { m_instance = this; HTTPReq.defaultTimeoutIndicator = this; HTTPReq.delaySimulation = 0.0f; } m_group = GetComponent <CanvasGroup>(); GameObject text = CORE.HIERARCHY.Find(gameObject, "Text"); GameObject bar = CORE.HIERARCHY.Find(gameObject, "Bar"); if (text != null) { m_text = text.GetComponent <UnityEngine.UI.Text>(); } if (bar != null) { m_bar = bar.GetComponent <UnityEngine.UI.RawImage>(); } if (m_bar != null) { m_barTransform = m_bar.GetComponent <RectTransform>(); } m_fade.Begin(FADE_TYPE.FADE_OUT, FADE_OUT_DURATION); }
//**************************************************************************************************** // //**************************************************************************************************** public void OnDestroy() { if (m_instance == this) { m_instance = null; HTTPReq.defaultTimeoutIndicator = null; } }