예제 #1
0
        public static GameObjectNode AttachTree(GameObject pGameObject)
        {
            Debug.Assert(pGameObject != null);
            GameObjectManager goMan = GameObjectManager.GetInstance();

            GameObjectNode goNode = (GameObjectNode)goMan.BaseAdd();

            Debug.Assert(goNode != null);

            goNode.Set(pGameObject);
            return(goNode);
        }
예제 #2
0
        public static GameObjectNode Attach(GameObject pGameObject)
        {
            GameObjectManager pMan = GameObjectManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            GameObjectNode pNode = (GameObjectNode)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(pGameObject);
            return(pNode);
        }
        //only composites!!
        public static GameObjectNode Attach(GameObject pGameObject)
        {
            Debug.Assert(pGameObject != null);
            Debug.Assert(pGameObject.holder == Component.Container.COMPOSITE);

            GameObjectManager pMan = GameObjectManager.pActiveMan;

            Debug.Assert(pMan != null);

            GameObjectNode pNode = (GameObjectNode)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(pGameObject);
            return(pNode);
        }