Beispiel #1
0
 /// <summary>
 /// OnEnable touch in given screen position.
 /// </summary>
 /// <param name="position">Screen position.</param>
 /// <returns>Internal touch id.</returns>
 protected int beginTouch(Vector2 position)
 {
     if (CoordinatesRemapper != null)
     {
         position = CoordinatesRemapper.Remap(position);
     }
     return(manager.BeginTouch(position));
 }
Beispiel #2
0
 /// <summary>
 /// Begin touch in given screen position.
 /// </summary>
 /// <param name="position">Screen position.</param>
 /// <param name="tags">Initial tags.</param>
 /// <param name="properties">Initial properties.</param>
 /// <returns>Internal touch id.</returns>
 protected virtual int beginTouch(Vector2 position, Tags tags, IDictionary <string, System.Object> properties)
 {
     if (CoordinatesRemapper != null)
     {
         position = CoordinatesRemapper.Remap(position);
     }
     return(manager.BeginTouch(position, tags, properties));
 }