public bool OnGround() { bool result = testGround.OnGround(); result = result && !(velocity.y > 0.1f); return(result); }
public bool OnGround() { TestGround testGround = characterCollider.GetComponent <TestGround>(); bool result = testGround.OnGround(); result = result && !(rigid.velocity.y > 0.1f); return(result); }