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
The
targetswill only enable if you’re the MasterClient or not.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | true |
targets
The list of gameobjects to enable or not if you’re the MasterClient.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | GameObject[] | new GameObject[] { } |
Function Definitions
Select the function name from below to jump directly to it on this page.
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 theSetIsActivefunction.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
protected virtual void SetIsActive(bool isActive)
Sets all the
targetsto 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? |