add: EyeEnemy proper functionality
This commit is contained in:
@@ -7,9 +7,11 @@ public class GroundDetector : MonoBehaviour
|
||||
|
||||
public void OnTriggerEnter(Collider other) {
|
||||
if ((1 << other.gameObject.layer & groundMask) != 0) onGround = true;
|
||||
// onGround = true;
|
||||
}
|
||||
void OnTriggerStay(Collider other) { OnTriggerEnter(other); }
|
||||
void OnTriggerExit(Collider other) {
|
||||
if ((1 << other.gameObject.layer & groundMask) != 0) onGround = false;
|
||||
// onGround = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user