コード例 #1
0
    IEnumerator Zooming()
    {
        // throw ball and wait for a bit
        dummy_player.lose_ball(new Vector2(5f, 5f), false);
        Debug.Log("Dummy Player threw the ball!");
        yield return(new WaitForSeconds(3.0f));

        // zoom to targets
        int index = 0;

        cam.in_control = false;
        cam.target_fov = 45;
        cam.set_lerp_spd(5.0f);
        while (index < target_list.Length)
        {
            cam.target_pos = target_list[index].position;
            index++;
            yield return(new WaitForSeconds(interval));
        }
        cam.reset_lerp_spd();
        cam.in_control = true;
    }