void Awake() { prefabHandler = GameObject.Find("StatusBoxHandler").GetComponent <MenuPrefabHandler>(); menuHandler = GameObject.Find("MenuHandler").GetComponent <MenuHandler>(); cursor = gameObject; string parent = cursor.transform.parent.name; cm = gameObject.GetComponent <CursorMover>(); selectedOption = cm.GetSelectedOption(); menuHandler.SetCursor(cursor); }