- Home /
triggering an event in another C# script
hi, this has probably been asked a million times however i cant seem to get it to work.
I have two scripts. one event occurs in script A and should trigger another in Script B.
if(transform.position.y < 0)
//trigger in other script B
And then in my other script, B i want something like this:
//if Event happened in script A
blockcount--;
I've looked everywhere for an answer but nothing works, can someone help? would be much appreciated!
Answer by Sajidfarooq · Sep 08, 2013 at 08:22 AM
Watch this tutorial and it should become clearer.
Your answer
Follow this Question
Related Questions
Change a value of a script from other script 1 Answer
Plugging a script into another script when gameobject is selecte 1 Answer
Access a Script from Another Scene? "Object Reference not set..." 0 Answers
Get GameObject From Another Script 1 Answer
Access a Script from Another Scene? "Object Reference not set..." 1 Answer