disallow_multiple¶
function in Infernux.components
Description¶
Prevent multiple instances of this component on a GameObject.
Usable with or without parentheses::
@disallow_multiple
class MySingleton(InxComponent): ...
@disallow_multiple()
class MySingleton(InxComponent): ...
description
Example¶
example