void SetMeshRenderers()
    {
        foreach (OcclusionType occType in occlusionType)
        {
            List <MeshRenderer> tempList = occObjList.GetProperListOfMeshRenderer(occType);

            foreach (MeshRenderer mr in tempList)
            {
                meshRenderers.Add(mr);
            }
        }
    }
Exemplo n.º 2
0
    public void RestoreHiddenObjects()
    {
        OcclusionType type = OcclusionType.A;

        while (type != OcclusionType.End)
        {
            List <MeshRenderer> templist = OccList.GetProperListOfMeshRenderer(type);

            if (templist.Count > 0)
            {
                foreach (MeshRenderer mr in templist)
                {
                    mr.enabled = true;
                }
            }

            type++;
        }
    }