Exemplo n.º 1
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();
        }
        //
    }
Exemplo n.º 2
0
    /// <summary>
    /// Reset the ball position and current drawn line then change the level
    /// </summary>
    protected virtual void OnTrackingFound()
    {
        BallReset reset = GameObject.FindGameObjectWithTag("Player").GetComponent <BallReset>();

        lineReset.points.Clear();
        reset.ResetBall();
        levelChanger.ChangeLevel();
    }
Exemplo n.º 3
0
        protected IEnumerator toNextLevel()
        {
            yield return(new WaitForSecondsRealtime(2));

            LevelChanger.ChangeLevel(nextLevel);
        }