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