public override void Execute(float d) { List <RaycastResult> results = Settings.GetUIObjs(); IClickable c = null; foreach (RaycastResult r in results) { c = r.gameObject.GetComponentInParent <IClickable>(); if (c != null) { c.OnHighLigth(); break; } } }