public static CollisionPair add(CollisionPair.CollisionPairName colPairName, GameObject rootA, GameObject rootB) { CollisionPairManager collisionManInst = CollisionPairManager.getSingletonInstance(); Debug.Assert(collisionMInstance != null); CollisionPair nodeAdded = (CollisionPair)collisionManInst.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the Image node nodeAdded.set(colPairName, rootA, rootB); return(nodeAdded); }