Exemple #1
0
    public void quitCinematic()
    {
        Debug.Log("quitCinematic.....");

        // GET
        PlayerController  pc           = playerGO.GetComponent <PlayerController>();
        PlayerFollower    playerFollow = cameraGO.GetComponent <PlayerFollower>();
        CinematicFollower CF           = cameraGO.GetComponent <CinematicFollower>();

        // LOGIC
        if (!!pc)
        {
            pc.freezeMovements = false;
            if (!!playerFollow)
            {
                playerFollow.paused = false;
            }
        }
        if (!!CF)
        {
            CF.paused = true;
        }
        ableToLaunchSequence  = true;
        cinematicIsPlaying    = false;
        cinematicMustBePlayed = false;
    }
Exemple #2
0
    void moveCameraToPrincess()
    {
        Transform         target = princessGO.transform;
        CinematicFollower CF     = cameraGO.GetComponent <CinematicFollower>();

        if (!!CF)
        {
            CF.setNewTarget(princessGO);
        }
    }
Exemple #3
0
    public void launchCinematic()
    {
        // GET
        PlayerController  pc           = playerGO.GetComponent <PlayerController>();
        PlayerFollower    playerFollow = cameraGO.GetComponent <PlayerFollower>();
        CinematicFollower CF           = cameraGO.GetComponent <CinematicFollower>();

        // LOGIC
        if (!!pc)
        {
            pc.freezeMovements = true;
            if (!!playerFollow)
            {
                playerFollow.paused = true;
            }
        }
        if (!!CF)
        {
            CF.paused = false;
        }

        playCinematic();
    }