using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 变速箱取力下部
///
public class PowerSwitchDownBtn : PermanentTriggerBase
{
public FunctionSync_PositionRoate linkageObject;
///
/// 总电源
///
public OneValueSyncObject mainSwitch;
///
/// 取力开关
///
public OneValueSyncObject switchOn;
protected override void OnMDown()
{
//base.PressedEvent();
linkageObject.transform.localEulerAngles = new Vector3(-6, 0, 0);
linkageObject.ReleaseControl();
if (mainSwitch.mybool)
{
switchOn.mybool = true;
switchOn.SendSync();
if (switchOn.action_apprisedetail != null) switchOn.action_apprisedetail.Invoke();
}
StepManager.Instance.FinishStep(triggerName);
}
//public override void Init()
//{
// base.Init();
//}
}