Wiki

Case Status
Log In

Wiki

 
Home ยป Networking»Network PlayerCube_Prefab
Index
Navigation
Community Wiki

Network PlayerCube_Prefab

This prefab is network ready: It has two networkView component:

  • One networkView component set to observe the transform itself ( so that all instances in each running application are in the same position, rotation and scale)
  • One networkview component set to observe the fsm component ( so that all instances in each running application have their network synched Fsm Variables maintained)

In short, the networkView component is the critical component to build multi player systems. 

The fsm attached to this prefab has two critical responsabilities:

  1. give the owner controls with inputs to move the cube around, OR if not the owner, ignore the inputs ( the networkview will manage the transform synchronization over the network)
  2. Destroy this gameObject when disconnecting or Disconnected from the server

 


Last modified on 3/21/2012 2:38 AM by User.

  • RSS Feed