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); }
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); }