summaryrefslogtreecommitdiff
path: root/Runtime/BaseClasses/IsPlaying.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/BaseClasses/IsPlaying.cpp
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/BaseClasses/IsPlaying.cpp')
-rw-r--r--Runtime/BaseClasses/IsPlaying.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Runtime/BaseClasses/IsPlaying.cpp b/Runtime/BaseClasses/IsPlaying.cpp
new file mode 100644
index 0000000..184e830
--- /dev/null
+++ b/Runtime/BaseClasses/IsPlaying.cpp
@@ -0,0 +1,14 @@
+#include "UnityPrefix.h"
+#include "IsPlaying.h"
+
+#if GAMERELEASE
+static bool gIsWorldPlaying = true;
+#else
+static bool gIsWorldPlaying = false;
+#endif
+
+bool IsWorldPlaying () { return gIsWorldPlaying; }
+void SetIsWorldPlaying (bool isPlaying)
+{
+ gIsWorldPlaying = isPlaying;
+}