Object with no collider
As you may know from the title, I want to test if a object without a Cube Collider is overlapping an object (a First Person Controller). And if it is true, I want it to take 1 off of a variable. Here is the Script I have already:-
var healthtext : GUIText;
var health = 100;
function Update(){
healthtext.text = health.ToString();
if(What goes here){
var health = health-1;
yield WaitForSeconds(1);
}
}
Any answers are appreciated