Property | Type | Description | |
---|---|---|---|
playerId | int | ||
stoneType | StoneType, |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
Create ( StoneType, stoneType ) : StoneNetwork, | ||
Create ( StoneType, stoneType, Vector3 position, Quaternion rotation ) : StoneNetwork, | ||
OnPhotonSerializeView ( PhotonStream, stream, PhotonMessageInfo, info ) : void |
While script is observed (in a PhotonView), this is called by PUN with a stream to write or read. The property stream.isWriting is true for the owner of a PhotonView. This is the only client that should write into the stream. Others will receive the content written by the owner and can read it. Note: Send only what you actually want to consume/use, too! Note: If the owner doesn't write something into the stream, PUN won't send anything. |
|
Update ( ) : void |
public static Create ( StoneType, stoneType ) : StoneNetwork, | ||
stoneType | StoneType, | |
return | StoneNetwork, |
public static Create ( StoneType, stoneType, Vector3 position, Quaternion rotation ) : StoneNetwork, | ||
stoneType | StoneType, | |
position | Vector3 | |
rotation | Quaternion | |
return | StoneNetwork, |
public OnPhotonSerializeView ( PhotonStream, stream, PhotonMessageInfo, info ) : void | ||
stream | PhotonStream, | Read or write stream to pass state of this GameObject (or whatever else). |
info | PhotonMessageInfo, | Some info about the sender of this stream, who is the owner of this PhotonView (and GameObject). |
return | void |