Ejemplo n.º 1
0
    void SetupEvents()
    {
        print("Setting up Scene Events with id " + GetInstanceID());

        IsEventReady = true;
        eventCtrl.QueueListener(typeof(ChangeSceneEvent), new GlobalEventController.Listener(GetInstanceID(), ChangeScene));
        eventCtrl.QueueListener(typeof(ChangeUnitySceneEvent), new GlobalEventController.Listener(GetInstanceID(), ChangeUnityScene));
    }
Ejemplo n.º 2
0
    void SetupEvents()
    {
        print("Setting up Audio Events with id " + GetInstanceID());

        IsEventReady = true;
        eventCtrl.QueueListener(typeof(FadeAudioEvent), new GlobalEventController.Listener(GetInstanceID(), FadeAudioVolumeCallback));
        eventCtrl.QueueListener(typeof(PlayOneshotClipEvent), new GlobalEventController.Listener(GetInstanceID(), PlayOneshotClipCallback));
        eventCtrl.QueueListener(typeof(PlayBackgroundClip), new GlobalEventController.Listener(GetInstanceID(), PlayBackgroundClipCallback));
    }
Ejemplo n.º 3
0
    void SetupEvents()
    {
        print("Setting up Timer Events with id " + GetInstanceID());

        IsEventReady = true;
        eventCtrl.QueueListener(typeof(StartTimerEvent), new GlobalEventController.Listener(GetInstanceID(), StartTimerCallback));
        eventCtrl.QueueListener(typeof(TimerOverEvent), new GlobalEventController.Listener(GetInstanceID(), TimerOverCallback));
        eventCtrl.QueueListener(typeof(PauseTimerEvent), new GlobalEventController.Listener(GetInstanceID(), PauseTimerCallback));
        eventCtrl.QueueListener(typeof(ResumeTimerEvent), new GlobalEventController.Listener(GetInstanceID(), ResumeTimerCallback));
        eventCtrl.QueueListener(typeof(StopTimerEvent), new GlobalEventController.Listener(GetInstanceID(), StopTimerCallback));
    }
Ejemplo n.º 4
0
    void SetupEvents()
    {
        print("Setting up Vibration Events with id " + GetInstanceID());

        IsEventReady = true;
        eventCtrl.QueueListener(typeof(VibrationEvent), new GlobalEventController.Listener(GetInstanceID(), VibrationEventCallback));
        eventCtrl.QueueListener(typeof(VibrationOverEvent), new GlobalEventController.Listener(GetInstanceID(), VibrationOverEventCallback));
        eventCtrl.QueueListener(typeof(RumbleEvent), new GlobalEventController.Listener(GetInstanceID(), RumbleEventCallback));
        eventCtrl.QueueListener(typeof(RumbleOverEvent), new GlobalEventController.Listener(GetInstanceID(), RumbleOverEventCallback));
        eventCtrl.QueueListener(typeof(ToggleShakeEvent), new GlobalEventController.Listener(GetInstanceID(), ToggleShakeEventCallback));
    }