You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/UI/Tutorial.cs

28 lines
604 B
C#

using D2D.Core;
using D2D.UI;
using D2D.Utilities;
using D2D.Utils;
using UnityEngine;
using static D2D.Utilities.SettingsFacade;
using static D2D.Utilities.CommonLazyFacade;
using static D2D.Utilities.CommonGameplayFacade;
namespace D2D.UI
{
public class Tutorial : GameStateMachineUser
{
private void Update()
{
if (Input.anyKey || DInput.IsMousePressing)
{
Confirm();
}
}
private void Confirm()
{
_stateMachine.Push(new RunningState());
Destroy(gameObject);
}
}
}