public override void OnUpdate() { if (LoadingPanel.ReferenceEquals(m_Panel, null)) { return; } m_Panel.m_LoadingBar.value = GameMapManager.LoadingProgress / 100.0f; m_Panel.m_LoadingValue.text = string.Format("{0}%", GameMapManager.LoadingProgress); if (GameMapManager.LoadingProgress >= 100) { LoadOtherScene(); } }