예제 #1
0
    // Update is called once per frame
    void Update()
    {
        currentWaypoint       = cameraPath.GetCurrentWayPoint();
        currentTimeInWaypoint = cameraPath.GetCurrentTimeInWaypoint();

        if (!introPanEnded)
        {
            if (currentWaypoint == 1)
            {
                if (Mathf.FloorToInt(currentTimeInWaypoint) == 0 && introPlayed == false)
                {
                    StartCoroutine(playIntro(TitleWaitTime));
                }
            }
            if (currentWaypoint == 2)
            {
                Debug.Log("intro sequence ended");
                cam.transform.parent = Target;
                kayak.BeginDialogue();
                introPanEnded = true;
            }
        }
    }