using System.Collections; using UnityEngine; namespace RR.Common.Behaviour { public class UnfreezePlayerAction : SequenceAction { public override IEnumerator Execute(Sequencer context, GameObject target) { if (!target || !target.CompareTag("Player")) yield break; target.GetComponent().constraints = RigidbodyConstraints2D.FreezeRotation; } } }