Question by
Slashscreen · Jun 27, 2016 at 10:46 PM ·
scripting problemsyntax-errormessages
Message not being recieved
I'm sending a message to an object to explode after getting hit by a ray, and sending its' data for comparison.
// Sending:
case "Boom":
SendMessage("Explode", hit.collider.gameObject);
break;
//Receiving:
function Explode(data){
if(data === gameObject){
Comment