Exemplo n.º 1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (objectInteraction != null && objectInteraction.gameObject != null && objectInteraction.GetReloadProgress() < 0.99f)
     {
         counter = 0;
         menuSlideOut.TogglePanel(MenuSlideOut.PanelState.panelOut);
         fillImage.fillAmount = objectInteraction.GetReloadProgress();
     }
     else
     {
         counter++;
         if (counter > waitToHide)
         {
             menuSlideOut.TogglePanel(MenuSlideOut.PanelState.panelIn);
             counter = 0;
         }
         fillImage.fillAmount = 1.0f;
     }
 }