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

30 lines
830 B
C#

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