26 lines
660 B
C#
26 lines
660 B
C#
using UnityEngine;
|
|
|
|
namespace Common
|
|
{
|
|
public class RightHandButton : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
InputEvent.Instance.onRightAXButtonUp += LeftAXButtonUp;
|
|
InputEvent.Instance.onRightAXButtonEnter += LeftAXButtonEnter;
|
|
InputEvent.Instance.onRightAXButtonDown += LeftAXButtonDown;
|
|
}
|
|
void LeftAXButtonDown()
|
|
{
|
|
print("左手柄A键按下中···");
|
|
}
|
|
void LeftAXButtonEnter()
|
|
{
|
|
print("按下左手柄A键");
|
|
}
|
|
void LeftAXButtonUp()
|
|
{
|
|
print("抬起左手柄A键");
|
|
}
|
|
}
|
|
} |