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; }
void moveCameraToPrincess() { Transform target = princessGO.transform; CinematicFollower CF = cameraGO.GetComponent <CinematicFollower>(); if (!!CF) { CF.setNewTarget(princessGO); } }
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(); }