Here is what I came up with for changing the defenders color when hit by a attacker.
It also works great in the attacker script by simply changing the GetComponent(); to
GetComponent ();
Hope you guys are enjoying this course as much as I am.
John Cordeiro