using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Thousandto.Launcher.ExternalLibs { /// /// 遮挡剔除节点 /// public class OcNode { //OC类型 public OcDefine type = OcDefine.OC_Default; public OcRender rdType = OcRender.OC_Default; public Transform trans = null; public Renderer rd = null; public Vector3 Min = Vector3.zero; public Vector3 Max = Vector3.zero; //key: NodeType value:所在格子的索引id public Dictionary> dicRefrenceCellIds = new Dictionary>(); public int realKey = -1; public List GetRefrenceIds(OcDefine type) { if (dicRefrenceCellIds.ContainsKey((int)type)) { return dicRefrenceCellIds[(int)type]; } return null; } public void SetRealRefrenceCellIds() { List list = null; if (dicRefrenceCellIds.ContainsKey(realKey)) { list = dicRefrenceCellIds[realKey]; } dicRefrenceCellIds.Clear(); if (list != null) { dicRefrenceCellIds.Add(realKey, list); } } } }