here is my IsGrounded method,
bool IsGround(){
if (rigidBody.velocity.y <= 0) {
foreach(Transform points in groundPoints){
Collider2D[] colliders = Physics2D.OverlapCircleAll (points.position,0.2f);
for(int i=0;i<colliders.Length;i++){
if (colliders *.gameObject != gameObject) {*
-
return true;*
-
}*
-
}*
-
}*
-
}*
-
return false;*
- }*
what does this part do??
if (colliders .gameObject != gameObject) {
* return true;*
* }*