Exemple #1
0
        public static ColPair Add(ColPair.Name colpairName, GameObject treeRootA, GameObject treeRootB)
        {
            ColPairManager pMan = ColPairManager.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pColPair != null);

            pColPair.Set(colpairName, treeRootA, treeRootB);

            return(pColPair);
        }
Exemple #2
0
        public static ColPair Add(GameObject treeRootA, GameObject treeRootB)
        {
            // Get the instance
            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(treeRootA, treeRootB);

            return(pColPair);
        }
Exemple #3
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);
        }