C# Class StoneNetwork, sprint_workshop

Inheritance: Photon.MonoBehaviour
Afficher le fichier Open project: hekk/sprint_workshop

Méthodes publiques

Свойство Type Description
playerId int
stoneType StoneType,

Méthodes publiques

Méthode 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 méthode

public Awake ( ) : void
Résultat void

Create() public static méthode

public static Create ( StoneType, stoneType ) : StoneNetwork,
stoneType StoneType,
Résultat StoneNetwork,

Create() public static méthode

public static Create ( StoneType, stoneType, Vector3 position, Quaternion rotation ) : StoneNetwork,
stoneType StoneType,
position Vector3
rotation Quaternion
Résultat StoneNetwork,

OnPhotonSerializeView() public méthode

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).
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

playerId public_oe property

public int playerId
Résultat int

stoneType public_oe property

public StoneType, stoneType
Résultat StoneType,