/// <summary>
 /// Adds callback listeners. Used to handle actual player input, and give it to the movement manager, or somewhere else needed.
 /// </summary>
 /// <param name="startCallback">Touch start callback.</param>
 /// <param name="moveCallback">Touch moved callback.</param>
 /// <param name="endCallback">Touch ended callback.</param>
 public void AddListener(ProjectDelegates.TouchStartCallback startCallback, ProjectDelegates.TouchMoveCallback moveCallback, ProjectDelegates.TouchEndCallback endCallback)
 {
     this.OnTouchStart += startCallback;
     this.OnTouchMove += moveCallback;
     this.OnTouchEnd += endCallback;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds callback listeners. Used to handle actual player input, and give it to the movement manager, or somewhere else needed.
 /// </summary>
 /// <param name="startCallback">Touch start callback.</param>
 /// <param name="moveCallback">Touch moved callback.</param>
 /// <param name="endCallback">Touch ended callback.</param>
 public void AddListener(ProjectDelegates.TouchStartCallback startCallback, ProjectDelegates.TouchMoveCallback moveCallback, ProjectDelegates.TouchEndCallback endCallback)
 {
     this.OnTouchStart += startCallback;
     this.OnTouchMove  += moveCallback;
     this.OnTouchEnd   += endCallback;
 }