/// <summary> /// 移除按键按下事件监听 /// </summary> /// <param name="handle"></param> static public void RemoveKeyDownListener(OnKeyHandle handle) { Instance.RemoveKeyDownHandle(handle); }
private void RemoveKeyDownHandle(OnKeyHandle handle) { keyDownHandle -= handle; }
/// <summary> /// 添加按键按下事件监听 /// </summary> /// <param name="handle"></param> static public void AddKeyDownListener(OnKeyHandle handle) { Instance.AddKeyDownHandle(handle); }
private void AddKeyDownHandle(OnKeyHandle handle) { keyDownHandle += handle; }