Пример #1
0
    protected override void OnEnable()
    {
        base.OnEnable();

        Actium.On("FlashLightIsPickedUp", OnSolve);
    }
Пример #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));
    }
Пример #3
0
    protected override void OnEnable()
    {
        base.OnEnable();

        Actium.On("ViveHandInteractsWith_" + gameObject.name, OnInteractionStart);
    }
Пример #4
0
    protected override void OnEnable()
    {
        base.OnEnable();

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