Exemplo n.º 1
0
        public static ColPair Add(ColPair.Name pairName, GameObject treeRootA, GameObject treeRootB)
        {
            ColPairMan pMan = ColPairMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            ColPair pColPair = (ColPair)pMan.BaseAdd();

            Debug.Assert(pColPair != null);

            pColPair.Set(pairName, treeRootA, treeRootB);

            return(pColPair);
        }
Exemplo n.º 2
0
        public static ColPair Add(ColPair.Name colpairName, GameObject treeRootA, GameObject treeRootB)
        {
            // Get the instance
            ColPairMan pMan = ColPairMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            // Go to Man, get a node from reserve, add to active, return it
            ColPair pColPair = (ColPair)pMan.BaseAdd();

            Debug.Assert(pColPair != null);

            // Initialize Image
            pColPair.Set(colpairName, treeRootA, treeRootB);

            return(pColPair);
        }