Back To Index

EnableIfOwner

Jump To Parameters
Jump To Function Definitions


Parameter Definitions

Select the parameter name from below to jump directly to it on this page.

isOwner
targets


isOwner

The targets will only enable if you’re the MasterClient or not.

Exposed Value Type Default Value
protected bool true

Back To Top


targets

The list of gameobjects to enable or not if you’re the MasterClient.

Exposed Value Type Default Value
protected GameObject[] new GameObject[] { }

Back To Top

Function Definitions

Select the function name from below to jump directly to it on this page.

FixedUpdate
SetIsActive


protected virtual void FixedUpdate()

Enable or disables the targets based on if your the MasterClient, in a photon room, and have a NetworkManager. This is done by calling the SetIsActive function.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


protected virtual void SetIsActive(bool isActive)

Sets all the targets to be active or not based on the input value.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
isActive bool type, enable all the targets?

Back To Top