CVR_SimulationAniBase.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. namespace ChivaXR.VR
  2. {
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. public enum SimulationAniType
  7. {
  8. TriggerValue,
  9. TriggerState,
  10. UseSimulationPoint
  11. }
  12. [System.Serializable]
  13. /// <summary>
  14. /// CVR工具模拟动画抽象类
  15. /// </summary>
  16. public abstract class CVR_SimulationAniBase
  17. {
  18. protected CVR_SimulationTool simulationTool;
  19. /// <summary>
  20. /// SimulationAni初始化
  21. /// </summary>
  22. /// <param name="tool"></param>
  23. public virtual void Init(CVR_SimulationTool tool)
  24. {
  25. simulationTool = tool;
  26. }
  27. /// <summary>
  28. /// CVR_触发键Value值(工具抓取状态下Trigger的Value值)
  29. /// </summary>
  30. /// <param name="value"></param>
  31. public virtual void CVR_TriggerXAxis_Value(float value) { }
  32. /// <summary>
  33. /// 工具抓取状态先点击Trigger
  34. /// </summary>
  35. public virtual void CVR_TriggerUsing() { }
  36. /// <summary>
  37. /// 工具抓取状态下松开Trigger
  38. /// </summary>
  39. public virtual void CVR_TriggerUnUsed() { }
  40. /// <summary>
  41. /// 工具抓取
  42. /// </summary>
  43. public virtual void CVR_Grab() { }
  44. /// <summary>
  45. /// 工具取消抓取
  46. /// </summary>
  47. public virtual void CVR_UnGrab() { }
  48. /// <summary>
  49. /// CVR_SimulationTool创建模拟点时调用
  50. /// SetSimulationPointUsedState(True) 启动辅助模拟点后可调用
  51. /// </summary>
  52. /// <param name="simulationPoint"></param>
  53. public virtual void CVR_CreatSimulationPoint(CVR_SimulationPoint simulationPoint) { }
  54. /// <summary>
  55. /// 使用SimulationPoint时每帧调用
  56. /// SetSimulationPointUsedState(True) 启动辅助模拟点后可调用
  57. /// </summary>
  58. /// <param name="simulationPoint"></param>
  59. public virtual void CVR_UsingSimulationPointUpdate(CVR_SimulationPoint simulationPoint) { }
  60. }
  61. }