-
Notifications
You must be signed in to change notification settings - Fork 0
Behaviour Extension
Andrzej Kebab edited this page Feb 2, 2024
·
1 revision
Enables a Behaviour instance.
// Example of usage
MonoBehaviour scriptInstance = // Obtain a MonoBehaviour instance;
scriptInstance.Enable();Parameters:
-
behaviour: TheBehaviourinstance to enable.
Returns:
-
behaviour: The enabledBehaviourinstance.
Disables a Behaviour instance.
// Example of usage
MonoBehaviour scriptInstance = // Obtain a MonoBehaviour instance;
scriptInstance.Disable();Parameters:
-
behaviour: TheBehaviourinstance to disable.
Returns:
-
behaviour: The disabledBehaviourinstance.