public GameObject FromAsset(SceneAsset asset) { var gameObject = new GameObject(asset.Position); var component = _componentFactory.FromAsset(asset); if (component.IsNotNull()) { gameObject.AddComponent(component); } return(gameObject); }
public GameObject FromAsset(SceneAsset asset) { var gameObject = new GameObject(asset.Position); var component = _componentFactory.FromAsset(asset); if (component.IsNotNull()) { gameObject.AddComponent(component); } return(gameObject); }