示例#1
0
        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!");
        }
示例#2
0
 private void Awake()
 {
     m_Culler = GetComponent <LOSCuller>();
 }
 private void Awake()
 {
     m_Culler = GetComponent<LOSCuller>();
 }