Ejemplo n.º 1
0
    private IEnumerator WaitToShoot(BallPhysics ball)
    {
        yield return(new WaitForSeconds(1));

        if (m_canShoot)
        {
            Jump();
            ball.transform.position = m_shootPosition.position;
            ball.LaunchProjectileTo(m_target);
            m_backboard.material.color = Color.red;
            m_light.SetActive(true);
        }
    }