I’m not understanding how the if (missile) line results in a true value. In trying to understand this I wrote the following code:
Projectile missile = collider.gameObject.GetComponent();
Debug.Log ("The value of missile = " + missile );
The following was logged on the Console: The value of missile = laser(Clone) (Projectile)
So how does " laser(Clone) (Projectile)" result in a logic “true”?
I should also add, that I felt this particular lesson was poorly explained - it was all about “do this” and very little “why do this”… just wanting to give constructive feedback here.