diff options
author | chai <chaifix@163.com> | 2020-11-02 19:53:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-02 19:53:12 +0800 |
commit | 3708d0a07ce43c3d98a0171eacfa9c370c873f96 (patch) | |
tree | 728f72bd8e6c464c6f56db7b08755031f685c45c /Assets/Scripts/Physics/PhysicsPrimitive.cs | |
parent | 64061aee5d7849f348f07b78fc3f96ad7555c147 (diff) |
*受击
Diffstat (limited to 'Assets/Scripts/Physics/PhysicsPrimitive.cs')
-rw-r--r-- | Assets/Scripts/Physics/PhysicsPrimitive.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Assets/Scripts/Physics/PhysicsPrimitive.cs b/Assets/Scripts/Physics/PhysicsPrimitive.cs index 26fb5aa9..c94aee1a 100644 --- a/Assets/Scripts/Physics/PhysicsPrimitive.cs +++ b/Assets/Scripts/Physics/PhysicsPrimitive.cs @@ -185,4 +185,12 @@ public abstract class PhysicsPrimitive : MonoBehaviour }
}
+ public bool IsInAir
+ {
+ get
+ {
+ return Bound.w > PhysicsWorld.Ground;
+ }
+ }
+
}
\ No newline at end of file |