Example #1
0
    void CameraBehaviour(Transform trans)
    {
        hacker.GetComponent <PlayerControl>().canControl = false;
        ai.GetComponent <PlayerControl>().canControl     = false;
        hacker.GetComponent <HealthSystem>().StartImmune();
        ai.GetComponent <HealthSystem>().StartImmune();

        ProCamera2DCinematics proCam = cam.GetComponent <ProCamera2DCinematics>();

        proCam.AddCinematicTarget(target.transform, 0f);

        proCam.Play();
        proCam.OnCinematicFinished.AddListener(StartMovement);
        proCam.OnCinematicFinished.AddListener(EndImmune);
        proCam.RemoveCinematicTarget(target.transform);
        CS.OnLinkedByPlayer -= CameraBehaviour;
    }
 public void UpdateCinematics(ProCamera2DCinematics camCinNew)
 {
     camCin = camCinNew;
 }
Example #3
0
 public void Awake()
 {
     proCamera2DCinematics = FindObjectOfType <ProCamera2DCinematics>();
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     Cinematics = gameObject.GetComponent <ProCamera2DCinematics>();
 }