C# Class StoneNetwork, sprint_workshop

Inheritance: Photon.MonoBehaviour
Datei anzeigen Open project: hekk/sprint_workshop

Public Properties

Property Type Description
playerId int
stoneType StoneType,

Public Methods

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

Method Details

Awake() public method

public Awake ( ) : void
return void

Create() public static method

public static Create ( StoneType, stoneType ) : StoneNetwork,
stoneType StoneType,
return StoneNetwork,

Create() public static method

public static Create ( StoneType, stoneType, Vector3 position, Quaternion rotation ) : StoneNetwork,
stoneType StoneType,
position Vector3
rotation Quaternion
return StoneNetwork,

OnPhotonSerializeView() public method

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.
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

Update() public method

public Update ( ) : void
return void

Property Details

playerId public_oe property

public int playerId
return int

stoneType public_oe property

public StoneType, stoneType
return StoneType,