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