Exemplo n.º 1
0
 private void StartLoading(IGazeable currentUIElement)
 {
     LoadingCircle.GetComponent <Animator>().SetBool("Loading", true);
     Timer = 0;
     if (LastUIElement != null)
     {
         LastUIElement.OnHoverEnd();
     }
     currentUIElement.OnHoverStart();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Finishes loading and activates the element
 /// </summary>
 /// <param name="currentUIElement"></param>
 private void ActivateElement(IGazeable currentUIElement)
 {
     currentUIElement.Activate();
     Activated = true;
     LoadingCircle.GetComponent <Animator>().SetBool("Loading", false);
     currentUIElement.OnHoverEnd();
 }