Ejemplo n.º 1
0
    public static Vector2 GetBallVelocity()
    {
        Vector2 v = m_ballObservationScript.GetBallVelocity();

        if (v == Vector2.zero)
        {
            return(cachedVelocity);
        }
        else
        {
            cachedVelocity = v;
            return(v);
        }
    }