Protfolio-Emanuel-Polsky / Assets / _Project / Code / VerletIntegration / InteractionFlag / Baker / SetInteractableWithFlag.cs
SetInteractableWithFlag.cs
Raw
using Unity.Burst;
using Unity.Entities;
using UnityEngine;

namespace GarmentButton.VerletIntegration.Interaction
{
    [BurstCompile]
    public class SetInteractableWithFlag : MonoBehaviour
    {
    }

    public class SetInteractableWithFlagBaker : Baker<SetInteractableWithFlag>
    {
        public override void Bake(SetInteractableWithFlag authoring)
        {
            //Create entity
            var entity = GetEntity(TransformUsageFlags.None);
            AddComponent<InteractableWithClothTag>(entity);
        }
    }
}