Exemple #1
0
        public static ColPair Add(ColPair.Name colpairName, int index, GameObject treeRootA, GameObject treeRootB)
        {
            // Get the instance
            ColPairManager pMan = ColPairManager.privGetInstance();

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

            Debug.Assert(pColPair != null);

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

            return(pColPair);
        }