Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "player")
        {
            if (em.isTraining)
            {
                //training mode
                em.ApplyBlackScreen();
            }
            else
            {
                //playing mode
                oen.NotifyEvent(OpenvibeEventNotifier.EventTypes.PLAYER_PORTAL);
                EN.SaveAndIncrementEnemySpeed();

                SceneManager.LoadScene(levelToLoad);
            }
        }
    }