Game Without PhotonView
Options
Comments
-
There is no way to use RPCs without any PhotonView. But: You can use a single PhotonView in a scene and keep that.
Or even better: You make yourself at home with PhotonNetwork.RaiseEvent() and implement a EventCallback delegate method to set as PhotonNetwork.OnEventCall. This way, you skip anything view related and can make up event codes and event content as you see fit. You can send Hashtables (to have key-values) or object[] or other data types as content.
RaiseEvent is the leanest way.0 -
Thanks! I'll do that then. Is this similar to the method in the 'Adding Operations' tutorial where you call custom operations with PhotonNetwork.NetworkPeer.OpCustom()? Which one is more efficient?0
-
You need events, not custom operations. Use RaiseEvent().
OpCustom() is for custom operations supported by on-premise server.0