Esempio n. 1
0
    IEnumerator GetIn(Collision other)
    {
        Vector3 edgeVel = Vector3.Project(velBeforeHit, transform.right);

        yield return(new WaitForFixedUpdate());

        edgeCol.PreGetIn(other, edgeVel);
    }
Esempio n. 2
0
    IEnumerator GetIn(Collision other)
    {
        Vector3 edgeVel = Vector3.Project(velBeforeHit, rightBeforeHit);

        yield return(new WaitForFixedUpdate());

        edgeCol.PreGetIn(other, edgeVel, OnStabOver, transform);
        //yield return new WaitUntil()
    }