Example #1
0
        public GameObject CloneGameObject()
        {
            GameObject newGameObject = new GameObject(Name);
            foreach (KeyValuePair<string, Property> prop in _properties)
            {
                newGameObject.AddProperty(prop.Value);
            }
            if (Image != null)
            {
                newGameObject.SetImage(Image.ConvertBinaryToImage());
            }

            return newGameObject;
        }
Example #2
0
        public GameObject CloneGameObject()
        {
            GameObject newGameObject = new GameObject(Name);

            foreach (KeyValuePair <string, Property> prop in _properties)
            {
                newGameObject.AddProperty(prop.Value);
            }
            if (Image != null)
            {
                newGameObject.SetImage(Image.ConvertBinaryToImage());
            }

            return(newGameObject);
        }