rimworld-animation-studio/Assets/Scripts/GUI/SelfContained/ButtonWithKeyCode.cs
AbstractConcept 757badf4f6 Code refactor
2022-10-27 00:56:04 -05:00

22 lines
446 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace RimWorldAnimationStudio
{
public class ButtonWithKeyCode : Button
{
public KeyCode keyCode;
public void Update()
{
if (Input.GetKeyDown(keyCode))
{ onClick.Invoke(); }
}
}
}