Beispiel #1
0
    protected override void OnEnable()
    {
        base.OnEnable();

        Actium.On("FlashLightIsPickedUp", OnSolve);
    }
Beispiel #2
0
    /// <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);
    }
Beispiel #4
0
    protected override void OnEnable()
    {
        base.OnEnable();

        Actium.On("RequestMovementToFloor", Elevate);
    }