private void AddKeyCodeMonitor(KeyCode code, Run begin, Run end, Run processing) { KeyCodeMonitor monitor = new KeyCodeMonitor(code, begin, end, processing); if (m_MonitorList == null) { m_MonitorList = new List<KeyCodeMonitor>(); } m_MonitorList.Add(monitor); }
private void AddKeyCodeMonitor(KeyBoardInputType type, KeyCode[] code, Run begin, Run process, Run end) { KeyCodeMonitor monitor = null; if (type == KeyBoardInputType.Click) { monitor = new KeyCodeMonitor_Click(code, begin, process, end); } else if (type == KeyBoardInputType.Shortcuts) { monitor = new KeyCodeMonitor_Shortcut(code, end); } else if (type == KeyBoardInputType.Sequeue) { monitor = new KeyCodeMonitor_Sequeue(code, end); } if (m_MonitorList == null) { m_MonitorList = new List <KeyCodeMonitor>(); } m_MonitorList.Add(monitor); }