C# Класс StoneNetwork, sprint_workshop

Наследование: Photon.MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
playerId int
stoneType StoneType,

Открытые методы

Метод Описание
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

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

Create() публичный статический Метод

public static Create ( StoneType, stoneType ) : StoneNetwork,
stoneType StoneType,
Результат StoneNetwork,

Create() публичный статический Метод

public static Create ( StoneType, stoneType, Vector3 position, Quaternion rotation ) : StoneNetwork,
stoneType StoneType,
position Vector3
rotation Quaternion
Результат StoneNetwork,

OnPhotonSerializeView() публичный Метод

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).
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

playerId публичное свойство

public int playerId
Результат int

stoneType публичное свойство

public StoneType, stoneType
Результат StoneType,