Beispiel #1
0
    void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
    {
        //Multiple components need to synchronize values over the network.
        //The SerializeState methods are made up, but they're useful to keep
        //all the data separated into their respective components

        SerializeState(stream, info);

        ShipVisuals.SerializeState(stream, info);
        ShipMovement.SerializeState(stream, info);
    }