public override void Execute(float dt) { List <RaycastResult> results = Settings.GetUIObjs(); IClickable c = null; for (int r = 0; r < results.Count; r++) { c = results[r].gameObject.GetComponentInParent <IClickable>(); if (c != null) { c.OnMouseHover(); break; } } }