12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- namespace ChivaXR.VR
- {
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public enum SimulationAniType
- {
- TriggerValue,
- TriggerState,
- UseSimulationPoint
- }
- [System.Serializable]
- /// <summary>
- /// CVR工具模拟动画抽象类
- /// </summary>
- public abstract class CVR_SimulationAniBase
- {
- protected CVR_SimulationTool simulationTool;
- /// <summary>
- /// SimulationAni初始化
- /// </summary>
- /// <param name="tool"></param>
- public virtual void Init(CVR_SimulationTool tool)
- {
- simulationTool = tool;
- }
- /// <summary>
- /// CVR_触发键Value值(工具抓取状态下Trigger的Value值)
- /// </summary>
- /// <param name="value"></param>
- public virtual void CVR_TriggerXAxis_Value(float value) { }
- /// <summary>
- /// 工具抓取状态先点击Trigger
- /// </summary>
- public virtual void CVR_TriggerUsing() { }
- /// <summary>
- /// 工具抓取状态下松开Trigger
- /// </summary>
- public virtual void CVR_TriggerUnUsed() { }
- /// <summary>
- /// 工具抓取
- /// </summary>
- public virtual void CVR_Grab() { }
- /// <summary>
- /// 工具取消抓取
- /// </summary>
- public virtual void CVR_UnGrab() { }
-
- /// <summary>
- /// CVR_SimulationTool创建模拟点时调用
- /// SetSimulationPointUsedState(True) 启动辅助模拟点后可调用
- /// </summary>
- /// <param name="simulationPoint"></param>
- public virtual void CVR_CreatSimulationPoint(CVR_SimulationPoint simulationPoint) { }
- /// <summary>
- /// 使用SimulationPoint时每帧调用
- /// SetSimulationPointUsedState(True) 启动辅助模拟点后可调用
- /// </summary>
- /// <param name="simulationPoint"></param>
- public virtual void CVR_UsingSimulationPointUpdate(CVR_SimulationPoint simulationPoint) { }
- }
- }
|