27 lines
682 B
C#
27 lines
682 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CheckQrState : IState
|
|
{
|
|
float timer = 0;
|
|
IState prevState;
|
|
|
|
public CheckQrState(IState prevState)
|
|
{
|
|
this.prevState = prevState;
|
|
}
|
|
|
|
public void enter() => GameManager.instance.checkQrPanel.SetActive(true);
|
|
|
|
public void exit() => GameManager.instance.checkQrPanel.SetActive(false);
|
|
public void update()
|
|
{
|
|
if (In.GetButtonDownAnyPlayer(PlayerAction.down))
|
|
{
|
|
//GameManager.instance.stateMachine.ChangeState(new SettingsState());
|
|
GameManager.instance.stateMachine.ChangeState(prevState);
|
|
}
|
|
}
|
|
}
|