diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Interfaces/IPhysics2D.cpp |
Diffstat (limited to 'Runtime/Interfaces/IPhysics2D.cpp')
-rw-r--r-- | Runtime/Interfaces/IPhysics2D.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Runtime/Interfaces/IPhysics2D.cpp b/Runtime/Interfaces/IPhysics2D.cpp new file mode 100644 index 0000000..f94ead4 --- /dev/null +++ b/Runtime/Interfaces/IPhysics2D.cpp @@ -0,0 +1,23 @@ +#include "UnityPrefix.h" +#include "IPhysics2D.h" + + +// -------------------------------------------------------------------------- + + +static IPhysics2D* gIPhysics2D = NULL; + + +// -------------------------------------------------------------------------- + + +IPhysics2D* GetIPhysics2D() +{ + return gIPhysics2D; +} + + +void SetIPhysics2D(IPhysics2D* value) +{ + gIPhysics2D = value; +} |