using Unity.Burst; using Unity.Entities; using UnityEngine; namespace GarmentButton.VerletIntegration.Interaction { [BurstCompile] public class EnableFlagInteractionMono : MonoBehaviour { } public class EnableFlagInteractionMonoBaker : Baker { public override void Bake(EnableFlagInteractionMono authoring) { //Create entity var entity = GetEntity(TransformUsageFlags.None); AddComponent(entity); SetComponentEnabled(entity, false); AddBuffer(entity); } } }