I have a powerup as a prefab, it has a collider attached to it aswell as this script. For some reason when my player runs into it there is no message in the log and I have no idea why? I looks to me like the syntax is correct and it returns no errors. You guys have any idea?
function OnCollisionEnter(collision : Collision){
if (collision.gameObject.name == "FakePlayer") {
Debug.Log("HitPowerup");
}
}