mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
22 lines
450 B
C#
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;
|
|
}
|
|
}
|
|
}
|