public override bool onDirection(Direction d) { GridLoc orGLoc = currentIndex.clone(); try { moveSelect(d); return(false); } catch (Exception e) { if (getNextTVBehaviourByDirection(d) != null) { currentIndex = orGLoc; return(true); } else if (!DirectionF.i(d).isVertical() && horizontalEndRepeatable) { handleRepeatEnd(d); return(false); } else if (DirectionF.i(d).isVertical() && verticalEndRepeatable) { handleRepeatEnd(d); return(false); } else { return(handleOther(d, orGLoc, currentIndex)); } } }
new public void Awake() { base.Awake(); currentIndex = GridLoc.zero(); gridLayout = GetComponent <GridLayoutGroup>(); rectTram = GetComponent <RectTransform>(); }
public void setCurrentSelected(GridLoc loc) { showCurrentSelected(false); currentIndex = loc; showCurrentSelected(true); }
public TvGrid get(GridLoc v) { return(gridMtx[v.y][v.x]); }
internal virtual bool handleOther(Direction d, GridLoc orGLoc, GridLoc _currentIndex) { currentIndex = orGLoc.clone(); showCurrentSelected(true); return(true); }