function OnCollisionEnter(col:Collision){
if(col.gameObject.name == “t”){
Debug.Log(“detected!”);
xp += 97;
xp_Component.text = “” + xp;
}
else if(col.gameObject.name ==“Target”){
xp +=30;
xp_Component.text = “” + xp;
}
}
function OnCollisionEnter(col:Collision){
if(col.gameObject.name == “t”){
Debug.Log(“detected!”);
xp += 97;
xp_Component.text = “” + xp;
}
else if(col.gameObject.name ==“Target”){
xp +=30;
xp_Component.text = “” + xp;
}
}