void OnKeyPress(object evt_) { KeyCode key = (KeyCode)evt_; switch (key) { case KeyCode.Keypad1: m_listView.JumpToIndex(11, KListViewScroll.JumpPosType.BOTTOM); break; case KeyCode.Keypad2: m_listView.JumpToIndex(5, KListViewScroll.JumpPosType.CENTER); break; case KeyCode.Keypad3: m_listView.JumpToIndex(14, KListViewScroll.JumpPosType.TOP); break; case KeyCode.Keypad4: GameObjUtil.RemoveFromParent(m_btnOk.gameObject); break; case KeyCode.Keypad5: GameObjUtil.ChangeParent(m_btnOk.gameObject, m_panel); break; default: break; } }