Ok, I have multiple objects (Robo) with instance variable (Data = number with value of either 0 or 1). When 2 Robos collide, and if any one of them has a Data value of 1, I want the Robo with the lowest value of Data, ie. 0 to change to 1. I tried the following but they don't seem to work. Is the code wrong or did I miss something?
Basically, I want the Robo who has data (Data =1) to "transfer data" to the Robo that has no data (Data =0) upon collision such that after collision, both Robo now have Data =1.