rimworld-animation-studio/Assets/Scripts/GUI/SelfContained/InactiveDuringAnimationPreview.cs
AbstractConcept 5ca7e486f8 Code refactor
2022-10-28 19:52:58 -05:00

22 lines
482 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace RimWorldAnimationStudio
{
public class InactiveDuringAnimationPreview : MonoBehaviour
{
private InputField inputfield;
private void Start()
{
inputfield = GetComponent<InputField>();
}
private void Update()
{
inputfield.interactable = Workspace.IsAnimating == false;
}
}
}