123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- using System;
- public class ViveController : AVRController
- {
- public override bool IsHandCameraMode
- {
- get
- {
- return this.m_CtrlBehNow.IsHandCameraMode;
- }
- }
- public override bool HandCameraMode
- {
- get
- {
- return this.m_CtrlBehNow.HandCameraMode;
- }
- set
- {
- if (value)
- {
- this.m_CtrlBehNow.HandCameraMode = true;
- }
- }
- }
- public override bool IsHandPenMode
- {
- get
- {
- return this.m_CtrlBehNow.IsHandPenMode;
- }
- }
- public override AVRControllerBehavior.LIMIT_MODE HandLimitMode
- {
- get
- {
- return this.m_CtrlBehNow.HandLimitMode;
- }
- set
- {
- this.m_CtrlBehNow.HandLimitMode = value;
- }
- }
- public override bool HandModelVisible
- {
- get
- {
- return this.m_CtrlBehNow.HandModelVisible;
- }
- set
- {
- this.m_CtrlBehNow.HandModelVisible = value;
- }
- }
- public override bool HandDanceMode
- {
- get
- {
- return this.m_CtrlBehNow.HandDanceMode;
- }
- set
- {
- this.m_CtrlBehNow.HandDanceMode = value;
- }
- }
- public override bool HandVRIKMode
- {
- get
- {
- return this.m_CtrlBehNow.HandVRIKMode;
- }
- set
- {
- this.m_CtrlBehNow.HandVRIKMode = value;
- }
- }
- public override bool HandYotogiMode
- {
- get
- {
- return this.m_CtrlBehNow.HandYotogiMode;
- }
- set
- {
- this.m_CtrlBehNow.HandYotogiMode = value;
- }
- }
- public override void Init()
- {
- base.Init();
- if (GameMain.Instance.VRMode)
- {
- this.m_CtrlBehOld = base.GetComponent<ViveControllerBehavior>();
- this.m_CtrlBehOld.Init(this);
- this.m_CtrlBehNew = base.GetComponent<ViveControllerBehavior2>();
- this.m_CtrlBehNew.Init(this);
- }
- }
- }
|