using System.Collections; using System.Collections.Generic; using UnityEngine; public class CheckQrState : IState { float timer = 0; public void enter() => GameManager.instance.checkQrPanel.SetActive(true); public void exit() => GameManager.instance.checkQrPanel.SetActive(false); public void update() { /*Это был выход по и1 + и2 с таймером 3 сек timer -= Time.deltaTime; if (In.GetButton(ButtonPinMapping.startOnePlayer) && In.GetButton(ButtonPinMapping.startTwoPlayers)) { timer += Time.deltaTime * 2; } timer = Mathf.Clamp(timer, 0, 3); if (timer >= 2.9f) { GameManager.instance.stateMachine.ChangeState(new SettingsState()); }*/ if (In.GetButtonDownAnyPlayer(PlayerAction.down)) { GameManager.instance.stateMachine.ChangeState(new SettingsState()); } } }