From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/BaseClasses/IsPlaying.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Runtime/BaseClasses/IsPlaying.cpp (limited to 'Runtime/BaseClasses/IsPlaying.cpp') 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; +} -- cgit v1.1-26-g67d0