Пример #1
0
 public void InputEventHandlerUnRegister_GetAxis_HorizontalVertical(DInputManagerGetAxis_HorizontalVertical eventHandler)
 {
     if (eventHandler == null || EventGetAxis_HorizontalVertical == null)
     {
         return;
     }
     EventGetAxis_HorizontalVertical -= eventHandler;
 }
 /// <summary>
 /// Input.GetAxis("Horizontal") and Input.GetAxis("Vertical")
 /// </summary>
 /// <param name="eventHandler"></param>
 public void InputEventHandlerRegister_GetAxis_HorizontalVertical(DInputManagerGetAxis_HorizontalVertical eventHandler)
 {
     if (eventHandler == null)
     {
         return;
     }
     if (EventGetAxis_HorizontalVertical == null)
     {
         EventGetAxis_HorizontalVertical = new DInputManagerGetAxis_HorizontalVertical(eventHandler);
     }
     else
     {
         EventGetAxis_HorizontalVertical += eventHandler;
     }
 }