RPC /Standalone modes

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?

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

Hm …

The problem is how to have the same scene with the same game Object using RPC or standalone methods in ad-hoc mode…