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

32 lines
797 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 转速调整上部
/// </summary>
public class RotateSpeedUpBtn : PermanentTriggerBase
{
public FunctionSync_PositionRoate linkageObject;
public FunctionSync_PositionRoate button_Roate;
protected override void OnMDown()
{
base.OnMDown();
button_Roate.transform.localEulerAngles = new Vector3(-6, 0, 0);
button_Roate.ReleaseControl();
StepManager.Instance.FinishStep(triggerName);
}
protected override void OnMExit()
{
base.OnMExit();
button_Roate.transform.localEulerAngles = new Vector3(0, 0, 0);
button_Roate.ReleaseControl();
}
//public override void Init()
//{
// base.Init();
//}
}