Beispiel #1
0
 public void setInitTvView(TVBehaviour t = null)
 {
     currentItem = t == null ? currentItem : t;
     if (currentItem != null)
     {
         setAllUnFocus();
         currentItem.focus(true);
     }
 }
Beispiel #2
0
 public void changeFocus(Direction d, TVBehaviour nextF)
 {
     currentItem.onLeaveFocus(() => {
         currentItem.focus(false);
     });
     currentItem = nextF;
     nextF.onFocus(() => {
         nextF.focus(true);
     }, d);
 }