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:
- 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)
- Destroy this gameObject when disconnecting or Disconnected from the server