using Unity.Entities; using UnityEngine; namespace jeanf.scenemanagement { public class PlayerAuthoring : MonoBehaviour { class Baker : Baker { public override void Bake(PlayerAuthoring authoring) { var entity = GetEntity(TransformUsageFlags.Dynamic); AddComponent(entity); AddComponent(entity); AddComponent(entity); } } } public struct Player : IComponentData { } }