示例#1
0
 public GameObject GetDown()
 {
     if (UIKeyNavigation.IsActive(this.onDown))
     {
         return(this.onDown);
     }
     if (this.constraint == UIKeyNavigation.Constraint.Horizontal || this.constraint == UIKeyNavigation.Constraint.Explicit)
     {
         return(null);
     }
     return(this.Get(Vector3.down, 2f, 1f));
 }
示例#2
0
 public GameObject GetRight()
 {
     if (UIKeyNavigation.IsActive(this.onRight))
     {
         return(this.onRight);
     }
     if (this.constraint == UIKeyNavigation.Constraint.Vertical || this.constraint == UIKeyNavigation.Constraint.Explicit)
     {
         return(null);
     }
     return(this.Get(Vector3.right, 1f, 2f));
 }
示例#3
0
 public GameObject GetUp()
 {
     if (UIKeyNavigation.IsActive(this.onUp))
     {
         return(this.onUp);
     }
     if (this.constraint == UIKeyNavigation.Constraint.Horizontal || this.constraint == UIKeyNavigation.Constraint.Explicit)
     {
         return((GameObject)null);
     }
     return(this.Get(Vector3.up, 2f, 1f));
 }
示例#4
0
 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));
 }
示例#5
0
 public GameObject GetUp()
 {
     if (UIKeyNavigation.IsActive(this.onUp))
     {
         return(this.onUp);
     }
     if (UIKeyNavigation.CanSkipToNext(this.onUp))
     {
         return(this.onUp.GetComponent <UIKeyNavigation>().GetUp());
     }
     if (this.constraint == UIKeyNavigation.Constraint.Horizontal || this.constraint == UIKeyNavigation.Constraint.Explicit)
     {
         return(null);
     }
     return(this.Get(Vector3.up, 2f, 1f));
 }
示例#6
0
 public unsafe static long $Invoke8(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(UIKeyNavigation.IsActive((GameObject)GCHandledObjects.GCHandleToObject(*args))));
 }