using Microsoft.MixedReality.Toolkit.UI.BoundsControl; using UnityEngine; /// /// 总开关下部按钮 /// public class MainSwitchDownBtn : PermanentTriggerBase { public FunctionSync_PositionRoate linkageObject; /// /// 是否可以启动 /// public OneValueSyncObject canStartCar; protected override void OnMDown() { base.OnMDown(); canStartCar.mybool= true; canStartCar.SendSync(); if (canStartCar.action_apprisedetail != null) canStartCar.action_apprisedetail.Invoke(); linkageObject.transform.localEulerAngles = new Vector3(-6, 0, 0); linkageObject.ReleaseControl(); StepManager.Instance.FinishStep(triggerName); } //public override void Init() //{ // base.Init(); //} }