private void StartLoading(IGazeable currentUIElement) { LoadingCircle.GetComponent <Animator>().SetBool("Loading", true); Timer = 0; if (LastUIElement != null) { LastUIElement.OnHoverEnd(); } currentUIElement.OnHoverStart(); }
/// <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(); }