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