Hello there,
In my project I have a script attached to the player that handles movement. It should receive OnClick() events from clicks to the terrain, items on the ground, wall, and such so that the player can move to them (this is a hack 'n' slash game with a birds eye view).
Given that I have a UICamera script (from NGUI!) attached to the main camera, I set UICamera.genericEventHandler to be the player so that the script attached to the player can receive all these events and make the player move accordingly.
This method works well enough in single player. However it seems that as players join the channel in a multiplayer game, their player instantiation sets all the previous player's UICamera.genericEventHandler to their player. This means that only the most recent player will receive these OnClick() events.
How would I go about remedying this problem? A solution would be to do what the example shows and have a script attached to the terrain that set the player's move target, but this doesn't seem optimal given that I'd need to do it in every object that the player must interact with on the ground/world.