Beispiel #1
0
    public bool OnGround()
    {
        bool result = testGround.OnGround();

        result = result && !(velocity.y > 0.1f);

        return(result);
    }
Beispiel #2
0
    public bool OnGround()
    {
        TestGround testGround = characterCollider.GetComponent <TestGround>();

        bool result = testGround.OnGround();

        result = result && !(rigid.velocity.y > 0.1f);

        return(result);
    }