예제 #1
0
    public override void play()
    {
        // [..]
        if (currentCinematicStage == 0)
        {
            moveCameraToPrincess();

            // AUTOTALK TO PRINCESS
            DialogNPC talkative = GetComponent <DialogNPC>();
            talkative.capturedPlayerControlled = playerGO.GetComponent <PlayerController>();
            if (!!talkative)
            {
                talkative.interactWithType(NPCTypeNames.dialog);
            }
        }
        if (currentCinematicStage > 1)
        {
            quitCinematic();
            Destroy(gameObject);
        }
    }