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();
        }
        //
    }
Beispiel #2
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));
     }
 }
Beispiel #3
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));
     }
 }