Files
beyond/Assets/Scripts/Input/AttackButtonHandler.cs
2024-11-20 15:21:28 +01:00

24 lines
537 B
C#

using Beyond;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AttackButtonHandler : MonoBehaviour
{
[SerializeField]
private ButtonHandler buttonHandler;
public void PressButton()
{
buttonHandler.SetDownState();
StartCoroutine(SetUpStateCoroutine());
}
private IEnumerator SetUpStateCoroutine()
{
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
buttonHandler.SetUpState();
}
}