Hello everyone! I'm helping create a game for a college final and am not very well versed in C# or computer programming as a whole. I created an enemy script that is supposed to trigger an enemy attack when the player is close. For reference, I used an enemy tutorial from inScope Studios on Youtube and modified it to use OnTriggerEnter rather than OnCollider.
2D Enemy Script
Code (CSharp):
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class EnemyScript : MonoBehaviour...