24 lines
537 B
C#
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();
|
|
}
|
|
} |