//────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── /// <summary> /// Initialize the Selector for the first time /// </summary> public virtual void ResetController() { StopAllCoroutines(); AnimateSelectionC = IAnimateSelection(); //Store the courutine SelectionAnimation IndexSelected = FocusedItemIndex; //Set the Index and current Item to the Focused Item CheckFirstItemFocus(); InitialTransform.RestoreLocalTransform(transform); CurrentEventData = new PointerEventData(EventSystem.current); //Store the Current Event Data }
//────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── /// <summary> /// Initialize the Selector for the first time /// </summary> public virtual void ResetController() { StopAllCoroutines(); AnimateSelectionC = IAnimateSelection(); //Store the courutine SelectionAnimation IndexSelected = FocusedItemIndex; //Set the Index and current Item to the Focused Item CheckFirstItemFocus(); InitialTransform.RestoreLocalTransform(transform); CurrentEventData = new PointerEventData(EventSystem.current); //Store the Current Event Data foreach (var item in Items) { if (item) { item.IsRestoring = false; //Restore all the Items to its original Location } } }