Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

triggering an event in another C# script

$
0
0
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!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>