using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace RimWorldAnimationStudio { public class QuiverToggle : MonoBehaviour { public void Update() { PawnKeyframe keyframe = Workspace.GetCurrentOrPreviousKeyframe(Workspace.ActorID); GetComponent().isOn = keyframe != null && keyframe.Quiver; } public void OnValueChanged() { PawnKeyframe keyframe = Workspace.GetCurrentOrPreviousKeyframe(Workspace.ActorID); if (keyframe != null) { keyframe.Quiver = GetComponent().isOn; } Workspace.RecordEvent("Actor quiver"); } } }