Day 70 — Bringing Security Cameras to Life

Spotting Darren

public GameObject gameOverCutscene;
public Animator anim;
private void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
anim.enabled = false;
StartCoroutine(FreezeCamera());
}
}
IEnumerator FreezeCamera()
{
yield return new WaitForSeconds(0.5f);
gameOverCutscene.SetActive(true);
}

--

--

--

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

#freestockphoto (Friday 13th 08PM)

Saving Data in Unity

How to virus scan an HTML file in Python

Upcoming Proof-of-Coverage Bug Fix

Database vs Data Warehouse vs Data Lake..!

CS373 Spring 2021 Blog #4: Remus Wong

Take, save and retrieve a photo — iOS #13

Linux tasks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Connor Fullarton

Connor Fullarton

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

More from Medium

Learn to code by Making 2.5 D Space Shooter Game.

What are “Render Pipelines” in Unity?

Indy Pro ’22: Talent Training

3rd Person Follow Virtual Camera Explained in Unity’s Cinemachine