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(); } // }
/// <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(); }
protected IEnumerator toNextLevel() { yield return(new WaitForSecondsRealtime(2)); LevelChanger.ChangeLevel(nextLevel); }