123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using ChivaXR.Op;
- /// <summary>
- /// 触发型操作点--点击按键
- /// </summary>
- public class OpTrigger_InputKey : OperationData_TriggerMode
- {
- public KeyCode keyCode;
- public override void SetDataStateValue(float value)
- {
- Debug.Log("监听触发器");
- }
- public override bool TriggerCondition()
- {
- return Input.GetKeyDown(keyCode);
- }
- }
|