public GameObject GetLeft() { if (UIKeyNavigation.IsActive(this.onLeft)) { return(this.onLeft); } if (UIKeyNavigation.CanSkipToNext(this.onLeft)) { return(this.onLeft.GetComponent <UIKeyNavigation>().GetLeft()); } if (this.constraint == UIKeyNavigation.Constraint.Vertical || this.constraint == UIKeyNavigation.Constraint.Explicit) { return(null); } return(this.Get(Vector3.left, 1f, 2f)); }
public GameObject GetDown() { if (UIKeyNavigation.IsActive(this.onDown)) { return(this.onDown); } if (UIKeyNavigation.CanSkipToNext(this.onDown)) { return(this.onDown.GetComponent <UIKeyNavigation>().GetDown()); } if (this.constraint == UIKeyNavigation.Constraint.Horizontal || this.constraint == UIKeyNavigation.Constraint.Explicit) { return(null); } return(this.Get(Vector3.down, 2f, 1f)); }