Skip to content

Commit a495f52

Browse files
committed
some formatting
1 parent 9bdbae6 commit a495f52

File tree

7 files changed

+8
-19
lines changed

7 files changed

+8
-19
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ InspectorExpandedItems.asset
1111
EditorUserBuildSettings.asset
1212
Web/
1313
*.apk
14-
/iOS
14+
/iOS
15+
Assets/AssetStoreTools*
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
using System.IO;
66

77
using PDollarGestureRecognizer;
8-
using PDollarDemo;
98

10-
public class CapturePoints : MonoBehaviour {
9+
public class Demo : MonoBehaviour {
1110

1211
public Transform gestureOnScreenPrefab;
1312

@@ -76,7 +75,6 @@ void Update () {
7675
}
7776

7877
gestureLinesRenderer.Clear();
79-
8078
}
8179

8280
++strokeId;
@@ -93,7 +91,7 @@ void Update () {
9391
points.Add(new Point(virtualKeyPosition.x, -virtualKeyPosition.y, strokeId));
9492

9593
currentGestureLineRenderer.SetVertexCount(++vertexCount);
96-
currentGestureLineRenderer.SetPosition(vertexCount - 1, WorldCoordinateForGesturePoint(virtualKeyPosition));
94+
currentGestureLineRenderer.SetPosition(vertexCount - 1, Camera.main.ScreenToWorldPoint(new Vector3(virtualKeyPosition.x, virtualKeyPosition.y, 10)));
9795
}
9896
}
9997
}
@@ -130,11 +128,4 @@ void OnGUI() {
130128
newGestureName = "";
131129
}
132130
}
133-
134-
private Vector3 WorldCoordinateForGesturePoint(Vector3 gesturePoint) {
135-
136-
Vector3 worldCoordinate = new Vector3(gesturePoint.x, gesturePoint.y, 10);
137-
138-
return Camera.main.ScreenToWorldPoint(worldCoordinate);
139-
}
140131
}

Assets/Scripts/PDollarDemo.meta

Lines changed: 0 additions & 5 deletions
This file was deleted.

Assets/Scripts/PDollarDemo/GestureIO.cs renamed to Assets/Scripts/PDollarGestureRecognizer/GestureIO.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using System.IO;
22
using System.Collections.Generic;
33
using System.Xml;
4-
using PDollarGestureRecognizer;
54

65
using UnityEngine;
76

8-
namespace PDollarDemo
7+
namespace PDollarGestureRecognizer
98
{
109
public class GestureIO
1110
{
File renamed without changes.

ProjectSettings/GraphicsSettings.asset

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
--- !u!30 &1
44
GraphicsSettings:
55
m_ObjectHideFlags: 0
6+
serializedVersion: 2
67
m_AlwaysIncludedShaders:
78
- {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
9+
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
10+
- {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0}

0 commit comments

Comments
 (0)