コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
    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++;
        }
    }
コード例 #4
0
 private ApolloMessageManager() : base(false, true)
 {
     this.seqMessageCollection = new DictionaryView <uint, ApolloMessage>();
     this.cmdMessageCollection = new DictionaryObjectView <TalkerCommand, ApolloMessage>();
 }