Ejemplo n.º 1
0
 private void Update()
 {
     m_UIManager.textPosition.text = m_PolePositionManager.UpdateUI();
     if (m_PlayerController.checkProblems())
     {
         Quaternion rot = new Quaternion(0.0f, m_PlayerInfo.transform.rotation.y, m_PlayerInfo.transform.rotation.z, m_PlayerInfo.transform.rotation.w);
         Vector3    pos;
         pos    = m_PolePositionManager.SpherePosition(m_PlayerInfo.CurrentPosition);
         pos.y += 5.0f;
         m_PlayerInfo.transform.SetPositionAndRotation(pos, rot);
     }
 }