static public int OnNavigate(IntPtr l) { try { UIKeyNavigation self = (UIKeyNavigation)checkSelf(l); UnityEngine.KeyCode a1; checkEnum(l, 2, out a1); self.OnNavigate(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }