private void Start() { m_VisibilityInfo = GetComponent <LOSVisibilityInfo>(); // Disable LOSCuller script and use Visibilty Info instead if both are present if (m_VisibilityInfo != null && m_VisibilityInfo.isActiveAndEnabled) { m_Culler.enabled = false; } }
private void OnEnable() { m_VisibilityInfo = GetComponent <LOS.LOSVisibilityInfo>(); }