Ejemplo n.º 1
0
        private void Start()
        {
            Camera cam = m_camInputManager.CurrentCamera;

            m_camera  = cam.transform;
            m_reticle = cam.GetComponent <Reticle>();

            // Approximate the difference in scale of the reticle and text to be the same across all axes.
            m_ScaleMultiplier = m_TextTransform.localScale.x / m_reticle.ReticleTransform.localScale.x;

            // Display nothing on the start of the scene.
            m_WarningText.text        = string.Empty;
            m_BackgroundImage.enabled = false;
        }
Ejemplo n.º 2
0
 void Start()
 {
     m_reticle      = GetComponent <Reticle>();
     Cursor.visible = false;
 }