Immerseum.VRSimulator Namespace > EventManager Class : OnInstantiateControllerEnd Event |
public event EventManager.InstantiateControllerEndAction OnInstantiateControllerEnd
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnInstantiateControllerEnd += myCustomListener; } void OnDisable() { EventManager.OnInstantiateControllerEnd -= myCustomListener; } void myCustomListener(int controller, bool removeCollider) { // Custom listener logic goes here. } }