Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!other.CompareTag("Player"))
     {
         return;
     }
     Debug.Log("ONTRIGGERENTER ELIAS: " + this.gameObject.name);
     if (useSetLevel)
     {
         eliasPlayer.QueueEvent(setLevel.CreateSetLevelEvent(eliasPlayer.Elias));
     }
     if (useSetLevelOnTrack)
     {
         eliasPlayer.QueueEvent(setLevelOnTrack.CreateSetLevelOnTrackEvent(eliasPlayer.Elias));
     }
     if (usePlayStinger)
     {
         eliasPlayer.QueueEvent(playStinger.CreatePlayerStingerEvent(eliasPlayer.Elias));
     }
     if (useActionPreset)
     {
         eliasPlayer.RunActionPreset(actionPresetName, allowRequiredThemeMissmatch);
     }
     if (useDoubleEffectParam)
     {
         eliasPlayer.QueueEvent(doubleEffectParam.CreateSetEffectParameterEvent(eliasPlayer.Elias));
     }
     if (useSetSendVolume)
     {
         eliasPlayer.QueueEvent(setSendVolume.CreateSetSendVolumeEvent(eliasPlayer.Elias));
     }
 }
Esempio n. 2
0
 private void OnTriggerEnter(Collider other)
 {
     if (useSetLevel)
     {
         eliasPlayer.QueueEvent(setLevel.CreateSetLevelEvent(eliasPlayer.Elias));
     }
     if (useSetLevelOnTrack)
     {
         eliasPlayer.QueueEvent(setLevelOnTrack.CreateSetLevelOnTrackEvent(eliasPlayer.Elias));
         setLevel.level     = 1;
         setLevel.themeName = "";
     }
     if (usePlayStinger)
     {
         eliasPlayer.QueueEvent(playStinger.CreatePlayerStingerEvent(eliasPlayer.Elias));
     }
     if (useActionPreset)
     {
         eliasPlayer.RunActionPreset(actionPresetName, allowRequiredThemeMissmatch);
     }
     if (useDoubleEffectParam)
     {
         eliasPlayer.QueueEvent(doubleEffectParam.CreateSetEffectParameterEvent(eliasPlayer.Elias));
     }
     if (useSetSendVolume)
     {
         eliasPlayer.QueueEvent(setSendVolume.CreateSetSendVolumeEvent(eliasPlayer.Elias));
     }
 }
Esempio n. 3
0
    private void OnTriggerEnter(Collider other)
    {
        if (useSetLevel)
        {
            eliasPlayer.QueueEvent(setLevel.CreateSetLevelEvent(eliasPlayer.Elias));
        }
        if (usePlayStinger)
        {
            eliasPlayer.QueueEvent(playStinger.CreatePlayerStingerEvent(eliasPlayer.Elias));
        }
        if (useActionPreset)
        {
            eliasPlayer.RunActionPreset(actionPresetName, allowRequiredThemeMissmatch);
        }
        if (useDoubleEffectParam)
        {
            eliasPlayer.QueueEvent(doubleEffectParam.CreateSetEffectParameterEvent(eliasPlayer.Elias));
        }
        if (useSetSendVolume)
        {
            eliasPlayer.QueueEvent(setSendVolume.CreateSetSendVolumeEvent(eliasPlayer.Elias));
        }

        //CUSTOM
        LevelChanger changer = gameObject.GetComponent <LevelChanger>();

        if (changer != null)
        {
            changer.ChangeLevel();
        }
        //
    }
Esempio n. 4
0
    public bool StartElias()
    {
        if (elias.Handle == IntPtr.Zero)
        {
            return(false);
        }

        bool startedSucessfully;

        if (actionPreset >= 0)
        {
            startedSucessfully = StartWithActionPreset();
        }
        else
        {
            startedSucessfully = StartTheme(customPreset.CreateSetLevelEvent(elias));
        }
        if (startedSucessfully)
        {
            if (audioReader == null)
            {
                audioReader = new EliasAudioReader(elias, (uint)eliasFramesPerBuffer, GetComponent <AudioSource>(), useHighLatencyMode);
                audioReader.unityChannelMode = AudioSettings.speakerMode;
                AudioSettings.OnAudioConfigurationChanged += OnAudioConfigurationChanged;
            }
            isEliasStarted = true;
            GetComponent <AudioSource> ().Play();
        }
        return(startedSucessfully);
    }
Esempio n. 5
0
    public bool StartElias()
    {
        bool startedSucessfully;

        if (actionPreset >= 0)
        {
            startedSucessfully = StartWithActionPreset();
        }
        else
        {
            startedSucessfully = StartTheme(customPreset.CreateSetLevelEvent(elias));
        }
        if (startedSucessfully)
        {
            isEliasStarted = true;
            if (audioReader == null)
            {
                audioReader = new EliasAudioReader(elias, GetComponent <AudioSource>(), useHighLatencyMode);
            }
            GetComponent <AudioSource> ().Play();
        }
        return(startedSucessfully);
    }