Skip to content

Instantly share code, notes, and snippets.

@domaemon
Created August 18, 2014 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domaemon/8ea3356ebb07c982b9c0 to your computer and use it in GitHub Desktop.
Save domaemon/8ea3356ebb07c982b9c0 to your computer and use it in GitHub Desktop.
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