private void Start() { _orientedReticle = FindObjectOfType <OrientedReticle>(); if (_orientedReticle == null) { Debug.LogError("Cannot find OrientedReticle."); } gameObject.SetActive(_orientedReticle != null); _floorHeights.AddLast(float.PositiveInfinity); }
private void Start() { m_OrientedReticle = GetComponent <OrientedReticle>(); m_FloorHeights.AddLast(float.PositiveInfinity); }