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

Improving the quality of deliveries and team growth with the Dev Box technique

Introduction To Algorithm

Composing a Cutscene in Unity

Ever since I was a little boy, I have only ever wanted to be a Doctor.

How to get help with your programming problem

Monitoring ZFS on Unraid

Using SSL certificates from Let’s Encrypt in your Kubernetes Ingress via cert-manager

Understanding Radix Sort

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

Week 24: How to add SFX to you game without going mad

My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt3

Adding colliders to a scene

Damage VFX using Animated Sprites in Unity