Class ToggleGameObject
Inheritance
ToggleGameObject
Syntax
public class ToggleGameObject
Constructors
ToggleGameObject(List<(DynamicGuid Id, Int32 NbEnabled)>)
Declaration
public ToggleGameObject(List<(DynamicGuid Id, int NbEnabled)> toggleGameObjectList)
Parameters
ToggleGameObject(DynamicGuid, Int32)
Declaration
public ToggleGameObject(DynamicGuid id, int nbEnabled)
Parameters
Fields
ToggleGameObjectList
A positive value of x enable the GameObject x times, a negative value of x disable the GameObject x times.
The state of the GameObject toggles when the sum of all requests pass through the value 1.
SetActive is called with true when the sum goes from 0 to 1, and false when the sum goes from 1 to 0.
Declaration
public List<(DynamicGuid Id, int NbEnabled)> ToggleGameObjectList
Field Value