Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (m_trigger && !m_done)
     {
         m_sceneTransitionHandler.TransitionToScene(m_sceneTarget);
         m_done = true;
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (m_sceneHandler != null && !m_sceneHandler.IsInExiting())
     {
         if (m_colliders.Count > 0)
         {
             STTriggerObject stto = m_colliders[0].gameObject.GetComponent <STTriggerObject>();
             if (stto != null)
             {
                 m_sceneHandler.TransitionToScene(stto.m_sceneDestination);
             }
         }
     }
 }