diff options
author | chai <chaifix@163.com> | 2022-02-20 17:29:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-02-20 17:29:32 +0800 |
commit | 0e8ce5318fe683d0cf3d2c7c98fb361f62d4428f (patch) | |
tree | 8229d98905fa50a4c9d115a94ffb7a3a67667371 /JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs | |
parent | bdd4f322fd39485820cdf5c1fbdc6b712e81084b (diff) |
* rename folder
Diffstat (limited to 'JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs')
-rw-r--r-- | JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs b/JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs deleted file mode 100644 index 5e27a02..0000000 --- a/JamHelper/Assets/JamUtils/FPSControllerVelocity/Scripts/GroundChecker.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
- public class GroundChecker : MonoBehaviour
- {
- [SerializeField] private Transform m_Foot;
-
- private List<Collider> m_Colliders = new List<Collider>();
-
- public Transform foot
- {
- get
- {
- return m_Foot;
- }
- }
-
- public bool isOnGround
- {
- get
- {
- return m_Colliders.Count != 0;
- }
- }
-
- private void OnTriggerEnter(Collider other)
- {
- if (!m_Colliders.Contains(other))
- m_Colliders.Add(other);
- }
-
- private void OnTriggerExit(Collider other)
- {
- if (m_Colliders.Contains(other))
- m_Colliders.Remove(other);
- }
-
- private void OnTriggerStay(Collider other)
- {
- }
-
- }
-
-}
|