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; }
void Start() { m_reticle = GetComponent <Reticle>(); Cursor.visible = false; }