Ejemplo n.º 1
0
        public GameObject FromAsset(SceneAsset asset)
        {
            var gameObject = new GameObject(asset.Position);
            var component  = _componentFactory.FromAsset(asset);

            if (component.IsNotNull())
            {
                gameObject.AddComponent(component);
            }
            return(gameObject);
        }