C# 클래스 NetworkCullingHandler, Watch-Your-Head

상속: MonoBehaviour
파일 보기 프로젝트 열기: DDPHacker/Watch-Your-Head

공개 메소드들

메소드 설명
OnPhotonSerializeView ( PhotonStream, stream, PhotonMessageInfo, info ) : void

This time OnPhotonSerializeView is not used to send or receive any kind of data. It is used to change the currently active group of the PhotonView component, making it work together with PUN more directly. Keep in mind that this function is only executed, when there is at least one more player in the room.

비공개 메소드들

메소드 설명
HaveActiveCellsChanged ( ) : bool

Checks if the previously active cells have changed.

OnEnable ( ) : void

Gets references to the PhotonView component and the cull area game object.

OnGUI ( ) : void

Drawing informations.

Start ( ) : void

Initializes the right interest group or prepares the permanent change of the interest group of the PhotonView component.

Update ( ) : void

Checks if the player has moved previously and updates the interest groups if necessary.

UpdateInterestGroups ( ) : void

Unsubscribes from old and subscribes to new interest groups.

메소드 상세

OnPhotonSerializeView() 공개 메소드

This time OnPhotonSerializeView is not used to send or receive any kind of data. It is used to change the currently active group of the PhotonView component, making it work together with PUN more directly. Keep in mind that this function is only executed, when there is at least one more player in the room.
public OnPhotonSerializeView ( PhotonStream, stream, PhotonMessageInfo, info ) : void
stream PhotonStream,
info PhotonMessageInfo,
리턴 void