Exemplo n.º 1
0
        internal void RemoveFromCollection(IGameObject gameObject)
        {
            var node = (CCNode)gameObject;

            Collection.Remove(gameObject);
            CollectionNode.RemoveChild(node);
            UpdateCollectionPositions();
            node.Scale = Constants.STANDARD_SCALE;
            // reset the anchor
            node.AnchorPoint = gameObject.NormalAnchorPoint;
            MoveCollectionNode(CCPoint.Zero);
        }
Exemplo n.º 2
0
 internal CCPoint RemoveFromCollection(IGameObject gameObject)
 {
     CollectionNode.RemoveChild((CCNode)gameObject);
     Collection.Remove(gameObject);
     return(UpdatePositionsInCollection());
 }