예제 #1
0
 public void InputEventHandlerUnRegister_GetAxis_Vertical(DInputManagerGetAxis_Vertical eventHandler)
 {
     if (eventHandler == null || EventGetAxis_Vertical == null)
     {
         return;
     }
     EventGetAxis_Vertical -= eventHandler;
 }
 /// <summary>
 /// Input.GetAxis("Vertical")
 /// </summary>
 /// <param name="eventHandler"></param>
 public void InputEventHandlerRegister_GetAxis_Vertical(DInputManagerGetAxis_Vertical eventHandler)
 {
     if (eventHandler == null)
     {
         return;
     }
     if (EventGetAxis_Vertical == null)
     {
         EventGetAxis_Vertical = new DInputManagerGetAxis_Vertical(eventHandler);
     }
     else
     {
         EventGetAxis_Vertical += eventHandler;
     }
 }