コード例 #1
0
 public void RemoveJoyStickMoveListener(JoyStickTouchMove jsMove)
 {
     if (jsMove != null)
     {
         this.OnJoyStickTouchMove -= jsMove;
     }
 }
コード例 #2
0
 public void AddJoyStickMoveListener(JoyStickTouchMove jsMove)
 {
     if (jsMove != null)
     {
         this.OnJoyStickTouchMove += jsMove;
     }
 }
コード例 #3
0
 public void AddJoyStickMoveListener(JoyStickTouchMove action)
 {
     if (action != null)
     {
         JoyStick stk = transform.GetComponent <JoyStick>();
         if (stk != null)
         {
             stk.AddJoyStickMoveListener(action);
         }
     }
 }