protected override void OnEnable() { base.OnEnable(); Actium.On("FlashLightIsPickedUp", OnSolve); }
/// <summary> /// Set up an event listener in Actium. /// </summary> /// <param name="eventName">Event name.</param> /// <param name="handler">Event handler.</param> public void On(string eventName, ActiumEventHandler handler) { Actium.On(eventName, handler); linksToHandlers.Add(new LinkToHandlerInActiumEventData(eventName, handler)); }
protected override void OnEnable() { base.OnEnable(); Actium.On("ViveHandInteractsWith_" + gameObject.name, OnInteractionStart); }
protected override void OnEnable() { base.OnEnable(); Actium.On("RequestMovementToFloor", Elevate); }