So I have the following code:
function OnTriggerEnter (other : Collider)
{
if (other.gameObject.tag=="GREEN")
{
greenGemCount+=1;
}
}
but my gameObject doesn’t seem to register the collision, even with the “Green” gem having the “GREEN” Tag, however when I comment out the
if (other.gameObject.tag=="GREEN")
it seems to work, yet every “Gem” touched increases the value of greenGemCount. It appears correct? Any help, would be apprecited!
–WHYME