- Home /
This question was
closed Oct 24, 2014 at 07:07 AM by
robertbu for the following reason:
Duplicate Question
Question by
graviton · Oct 24, 2014 at 07:07 AM ·
send message
Sending variable data to another script, best way?
e.g.
I have 2 cubes, and 2 scripts (scriptA = collision script & scriptB = game manager), and 2 int variables (intRed & intBlue) in scriptB (game manager) to keep track of the number of times I hit each cube
scriptA determines whether I have hit one of the 2 cube (Red or Blue), and when I have hit one of the cubes I want to add +1 to its "int" variable in scriptB (intRed or intBlue)
I don't need help with scriptA, I just need the best way to send +1 to the integers in scriptB
Comment
Your answer
Follow this Question
Related Questions
how to send message to u3d form mfc? 0 Answers
Is SendMessage immediate or not? 2 Answers
select method to access from other component, in the editor? 1 Answer
Server as to be on the same scene as the client 0 Answers
Android Calling? 0 Answers