// Token: 0x060007A2 RID: 1954 RVA: 0x0003F1C0 File Offset: 0x0003D3C0 private void OnKey(KeyCode key) { int frameCount = Time.frameCount; if (UIInput.mIgnoreKey == frameCount) { return; } if (this.mCam != null && (key == this.mCam.cancelKey0 || key == this.mCam.cancelKey1)) { UIInput.mIgnoreKey = frameCount; this.isSelected = false; return; } if (key == KeyCode.Tab) { UIInput.mIgnoreKey = frameCount; this.isSelected = false; UIKeyNavigation component = base.GetComponent <UIKeyNavigation>(); if (component != null) { component.OnKey(KeyCode.Tab); } } }
private void OnKey(KeyCode key) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Invalid comparison between Unknown and I4 int frameCount = Time.get_frameCount(); if (mIgnoreKey != frameCount) { if (key == mCam.cancelKey0 || key == mCam.cancelKey1) { mIgnoreKey = frameCount; isSelected = false; } else if ((int)key == 9) { mIgnoreKey = frameCount; isSelected = false; UIKeyNavigation component = this.GetComponent <UIKeyNavigation>(); if (component != null) { component.OnKey(9); } } } }
static public int OnKey(IntPtr l) { try { UIKeyNavigation self = (UIKeyNavigation)checkSelf(l); UnityEngine.KeyCode a1; checkEnum(l, 2, out a1); self.OnKey(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
void OnKey (KeyCode key) { int frame = Time.frameCount; if (mIgnoreKey == frame) return; if (mCam != null && (key == mCam.cancelKey0 || key == mCam.cancelKey1)) { mIgnoreKey = frame; isSelected = false; } else if (key == KeyCode.Tab) { mIgnoreKey = frame; isSelected = false; UIKeyNavigation nav = GetComponent<UIKeyNavigation>(); if (nav != null) nav.OnKey(KeyCode.Tab); } }
private void OnKey(KeyCode key) { Int32 frameCount = Time.frameCount; if (UIInput.mIgnoreKey == frameCount) { return; } if (key == this.mCam.cancelKey0 || key == this.mCam.cancelKey1) { UIInput.mIgnoreKey = frameCount; this.isSelected = false; } else if (key == KeyCode.Tab) { UIInput.mIgnoreKey = frameCount; this.isSelected = false; UIKeyNavigation component = base.GetComponent <UIKeyNavigation>(); if (component != (UnityEngine.Object)null) { component.OnKey(KeyCode.Tab); } } }