public void RemoveJoyStickMoveListener(JoyStickTouchMove jsMove) { if (jsMove != null) { this.OnJoyStickTouchMove -= jsMove; } }
public void AddJoyStickMoveListener(JoyStickTouchMove jsMove) { if (jsMove != null) { this.OnJoyStickTouchMove += jsMove; } }
public void AddJoyStickMoveListener(JoyStickTouchMove action) { if (action != null) { JoyStick stk = transform.GetComponent <JoyStick>(); if (stk != null) { stk.AddJoyStickMoveListener(action); } } }