1118OPSSNew/Assets/Zion/Scripts/GameScene/Processes/Button/MainSwitchUpPressableBtn.cs

31 lines
839 B
C#

using Microsoft.MixedReality.Toolkit.UI.BoundsControl;
using UnityEngine;
/// <summary>
/// 总开关上部按钮
/// </summary>
public class MainSwitchUpPressableBtn : PermanentTriggerBase
{
public FunctionSync_PositionRoate linkageObject;
/// <summary>
/// 是否可以启动
/// </summary>
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();
//}
}