Day 67 — How to let the AI see

public GameObject gameOverCutscene;void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
gameOverCutscene.SetActive(true);
}
}
public Transform startCamera;void Start()
{
transform.position = startCamera.position;
transform.rotation = startCamera.rotation;
}

--

--

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

59 Followers

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.