menu
This commit is contained in:
@@ -165,9 +165,9 @@ namespace Ichni
|
||||
//Debug.Log("Touch: " + fingerId + " " + inputPosition);
|
||||
}
|
||||
|
||||
public void SetNewInputUnitSwipe(int fingerId, Vector2 inputPosition, Vector2 delta)
|
||||
public void SetNewInputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, Vector2 delta)
|
||||
{
|
||||
InputUnitSwipe inputUnitSwipe = new InputUnitSwipe(fingerId, inputPosition, delta);
|
||||
InputUnitSwipe inputUnitSwipe = new InputUnitSwipe(fingerId, inputPosition, isGeneric, delta);
|
||||
if(!inputUnitSwipeList.Exists(x => x.fingerId == fingerId))
|
||||
{
|
||||
inputUnitSwipeList.Add(inputUnitSwipe);
|
||||
@@ -203,11 +203,13 @@ namespace Ichni
|
||||
public class InputUnitSwipe : InputUnit
|
||||
{
|
||||
public Vector2 swipeDirection;
|
||||
public bool isGeneric;
|
||||
|
||||
public InputUnitSwipe(int fingerId, Vector2 inputPosition, Vector2 swipeDirection)
|
||||
public InputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, Vector2 swipeDirection)
|
||||
{
|
||||
this.fingerId = fingerId;
|
||||
this.inputPosition = inputPosition;
|
||||
this.isGeneric = isGeneric;
|
||||
this.swipeDirection = swipeDirection.normalized;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user