|
Hi All, I am building a game which currenlty played by 2 players in the same device. (i.e imagine chess) Currently I want to enchance my implementation so the game can be played over the net. The easiest way to do that is to re-write all scenes with RPC calls. But I will end up having all my scenes duplicated with RPC (and not) mode. So is it possible to keep the same set of scripts/code for both RPC and not, and somehow differnentiate at run time?
(comments are locked)
|
|
You can check the Network.peerType at runtime to determine if you need to send RPC or call a local function. I am not sure if this is the best solution... http://unity3d.com/support/documentation/ScriptReference/Network-peerType.html
(comments are locked)
|
|
Hm ......... The problem is how to have the same scene with the same game Object using RPC or standalone methods in ad-hoc mode..... my suggestion was that hooks could be added in code to behave differently based on connection status. Separate scenes or game objects would not be required. Not entirely sure what you mean by ad-hoc in this context.
Feb 09 '12 at 01:47 AM
Blazor Ramone
(comments are locked)
|
