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