You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
915 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
namespace DisComputer
{
public class SpareRotationCanvas : MonoBehaviour
{
[SerializeField]
private Button rot_left_btn;
[SerializeField]
private Button rot_right_btn;
[SerializeField]
private Button rot_ok_btn;
//左旋转回调
public UnityAction RotLeftHandle;
//右旋转回调
public UnityAction RotRightHandle;
//确定
public UnityAction RotEnterHandle;
// Start is called before the first frame update
void Start()
{
rot_left_btn.onClick.AddListener(RotLeftHandle);
rot_right_btn.onClick.AddListener(RotRightHandle);
rot_ok_btn.onClick.AddListener(RotEnterHandle);
}
}
}