Created
August 18, 2014 09:09
-
-
Save domaemon/592a229632bf747b7ec8 to your computer and use it in GitHub Desktop.
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
diff --git a/Assets/UnityChan2D/Demo/Scripts/StartController.cs b/Assets/UnityChan2D/Demo/Scripts/StartController.cs | |
index 48c49c4..aeacf26 100755 | |
--- a/Assets/UnityChan2D/Demo/Scripts/StartController.cs | |
+++ b/Assets/UnityChan2D/Demo/Scripts/StartController.cs | |
@@ -9,6 +9,25 @@ public class StartController : MonoBehaviour | |
[SerializeField] | |
private KeyCode enter = KeyCode.X; | |
+ public Joystick touchJoystick; | |
+ | |
+ private void CheckForRecordingPermission(bool granted) | |
+ { | |
+ if (granted) | |
+ { | |
+ Debug.Log("Microphone access was granted"); | |
+ } | |
+ else | |
+ { | |
+ Debug.Log("Microphone access was DENIED"); | |
+ } | |
+ } | |
+ | |
+ void Awake() | |
+ { | |
+ Everyplay.FaceCamRecordingPermission += CheckForRecordingPermission; | |
+ Everyplay.FaceCamRequestRecordingPermission(); | |
+ } | |
void Update() | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment