C# Class NetworkCullingHandler, Watch-Your-Head

Inheritance: MonoBehaviour
Afficher le fichier Open project: DDPHacker/Watch-Your-Head

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

OnPhotonSerializeView() public méthode

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