private void OnEnable() { m_Culler = GetComponent <LOSCuller>(); enabled &= Util.Verify(m_Culler != null, "LOS culler component missing."); enabled &= Util.Verify(GetComponent <Renderer>() != null, "No renderer attached to this GameObject! LOS Culler component must be added to a GameObject containing a MeshRenderer or Skinned Mesh Renderer!"); }
private void Awake() { m_Culler = GetComponent <LOSCuller>(); }
private void Awake() { m_Culler = GetComponent<LOSCuller>(); }