rimworld-animation-studio/Assets/Scripts/RequiresAnimationDef.cs
2022-09-19 00:35:34 -05:00

22 lines
450 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace RimWorldAnimationStudio
{
public class RequiresAnimationDef : MonoBehaviour
{
private Button button;
public void Start()
{
button = GetComponent<Button>();
}
public void Update()
{
button.interactable = Workspace.animationDef != null;
}
}
}