Beispiel #1
0
 //设置摇杆控制对象
 public void SetCallbackMoveFun(JoystickMove func)
 {
     m_callbackMove = func;
 }
 void Start()
 {
     joystickMove = joystick.GetComponent <JoystickMove>();
     gameScript   = GameObject.Find("MOVABLE").GetComponent <GameScript>();
 }
Beispiel #3
0
 public void SetMoveCallbackFunc(JoystickMove moveFunc)
 {
     moveCallback = moveFunc;
 }
Beispiel #4
0
 protected virtual void OnJoystickMove(IJoystickAxisEventArgs e) =>
 JoystickMove?.Invoke(this, e);