C# 클래스 StoneNetwork, sprint_workshop

상속: Photon.MonoBehaviour
파일 보기 프로젝트 열기: hekk/sprint_workshop

공개 프로퍼티들

프로퍼티 타입 설명
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,