Created
August 18, 2014 00:55
-
-
Save domaemon/8ea3356ebb07c982b9c0 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/Demo.cs b/Assets/UnityChan2D/Demo/Scripts/Demo.cs | |
index e1d19ff..50b25b0 100755 | |
--- a/Assets/UnityChan2D/Demo/Scripts/Demo.cs | |
+++ b/Assets/UnityChan2D/Demo/Scripts/Demo.cs | |
@@ -20,6 +20,22 @@ public class Demo : MonoBehaviour | |
void Awake() | |
{ | |
audioSource = GetComponent<AudioSource>(); | |
+ | |
+ if (Application.loadedLevelName == "World 1-1") | |
+ { | |
+ if (Everyplay.IsRecordingSupported()) | |
+ { | |
+ Everyplay.StartRecording(); | |
+ } | |
+ } | |
+ else if (Application.loadedLevelName == "Start") | |
+ { | |
+ if (Everyplay.IsRecording()) | |
+ { | |
+ Everyplay.StopRecording(); | |
+ Everyplay.ShowSharingModal(); | |
+ } | |
+ } | |
} | |
void OnDamage() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment