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