-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
654 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
# Created by https://www.gitignore.io/api/unity | ||
|
||
### Unity ### | ||
/[Ll]ibrary/ | ||
/[Tt]emp/ | ||
/[Oo]bj/ | ||
/[Bb]uild/ | ||
/[Bb]uilds/ | ||
/Assets/AssetStoreTools* | ||
|
||
# Autogenerated VS/MD/Consulo solution and project files | ||
ExportedObj/ | ||
.consulo/ | ||
*.csproj | ||
*.unityproj | ||
*.sln | ||
*.suo | ||
*.tmp | ||
*.user | ||
*.userprefs | ||
*.pidb | ||
*.booproj | ||
*.svd | ||
|
||
|
||
# Unity3D generated meta files | ||
*.pidb.meta | ||
|
||
# Unity3D Generated File On Crash Reports | ||
sysinfo.txt | ||
|
||
# Builds | ||
*.apk |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
using UnityEngine.UI; | ||
using System; | ||
|
||
public class ControlScript : MonoBehaviour { | ||
|
||
public Text DebugText; | ||
public bool DebugMode = false; | ||
|
||
// Use this for initialization | ||
void Start () { | ||
MBTHelper.OnTap += (angle) => { | ||
ShowParameter(string.Format("::Tap angle:{0}::",angle)); | ||
}; | ||
|
||
MBTHelper.OnDoubleTap += (angle) => { | ||
ShowParameter(string.Format("::DoubleTap {0}::",angle)); | ||
}; | ||
|
||
MBTHelper.OnScroll += (angle) => { | ||
string s = String.Format("::Scroll {0} ::",angle); | ||
ShowParameter(s); | ||
}; | ||
|
||
MBTHelper.OnSwipe += (speed,direction) => { | ||
var s = String.Format("::Swipespd:{0},dir:{1} ::",speed,direction); | ||
ShowParameter(s); | ||
}; | ||
MBTHelper.OnScrollBegan += () => { | ||
ShowParameter("scrollBegan!!!"); | ||
}; | ||
|
||
MBTHelper.OnScrollEnd += () => { | ||
ShowParameter("ScrollEnd!!!!"); | ||
}; | ||
|
||
MBTHelper.OnSetupProgress += () => { | ||
ShowParameter("setupProgress:"+Time.time); | ||
}; | ||
MBTHelper.OnSetupCompleted += () => { | ||
ShowParameter("setupComplete!!!"); | ||
}; | ||
|
||
// DebugText.text = ""; | ||
} | ||
|
||
private void ShowParameter (string st) { | ||
Debug.Log (st); | ||
if (DebugMode) { | ||
DebugText.text = st; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.