In the course, we were asked to add a Rigidbody using code. They showed it like this;
However, I did it like this;
void Start()
{
scoreboard = FindObjectOfType<scoreboard>();
gameObject.AddComponent<Rigidbody>().useGravity = false;
}
As far as I can tell, the enemy is doing exactly what it was doing on Rick’s screen. What is the difference?
This refers to the Complete C# Unity Game Developer 3D course on Udemy (Argon Assault).