public override void Reset() { base.Reset(); this.originalStartPoint = Vector3.zero; this.startPoint = Vector3.zero; this.startNode = null; this.parents = new DictionaryObjectView <GraphNode, GraphNode>(); this.saveParents = true; }
public List <GameObject> GetCollisionSet() { List <GameObject> list = new List <GameObject>(); using (DictionaryObjectView <GameObject, float> .Enumerator enumerator = this.collisionSet.GetEnumerator()) { while (enumerator.MoveNext()) { KeyValuePair <GameObject, float> current = enumerator.get_Current(); list.Add(current.get_Key()); } } return(list); }
private void SetLayer(GameObject go, DictionaryObjectView <GameObject, int> layerDic, int targetLayer) { layerDic.Add(go, go.layer); go.layer = targetLayer; Transform transform = go.transform; int index = 0; int childCount = transform.childCount; while (index < childCount) { Transform child = transform.GetChild(index); this.SetLayer(child.gameObject, layerDic, targetLayer); index++; } }
private ApolloMessageManager() : base(false, true) { this.seqMessageCollection = new DictionaryView <uint, ApolloMessage>(); this.cmdMessageCollection = new DictionaryObjectView <TalkerCommand, ApolloMessage>(); }