update
This commit is contained in:
@@ -188,9 +188,9 @@ namespace Ichni
|
||||
}
|
||||
}
|
||||
|
||||
public void SetNewInputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, Vector2 delta)
|
||||
public void SetNewInputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, bool isFirst, Vector2 delta)
|
||||
{
|
||||
InputUnitSwipe inputUnitSwipe = new InputUnitSwipe(fingerId, inputPosition, isGeneric, delta);
|
||||
InputUnitSwipe inputUnitSwipe = new InputUnitSwipe(fingerId, inputPosition, isGeneric, isFirst, delta);
|
||||
if(!inputUnitSwipeList.Exists(x => x.fingerId == fingerId))
|
||||
{
|
||||
inputUnitSwipeList.Add(inputUnitSwipe);
|
||||
@@ -304,12 +304,13 @@ namespace Ichni
|
||||
{
|
||||
public Vector2 swipeDirection;
|
||||
public bool isGeneric;
|
||||
|
||||
public InputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, Vector2 swipeDirection)
|
||||
public bool isFirst;
|
||||
public InputUnitSwipe(int fingerId, Vector2 inputPosition, bool isGeneric, bool isFirst, Vector2 swipeDirection)
|
||||
{
|
||||
this.fingerId = fingerId;
|
||||
this.inputPosition = inputPosition;
|
||||
this.isGeneric = isGeneric;
|
||||
this.isFirst = isFirst;
|
||||
this.swipeDirection = swipeDirection.normalized;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user