Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (m_tankManager != null)
     {
         if (m_tankManager.GetProgress() > 0)
         {
             sld_progress.gameObject.SetActive(true);
             sld_progress.value = m_tankManager.GetProgress() / 100f;
         }
     }
 }