26 lines
642 B
C#
26 lines
642 B
C#
![]() |
using StateMachine;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace Laptop.States
|
|||
|
{
|
|||
|
public class Close : State<LaptopStates>
|
|||
|
{
|
|||
|
private StartGameButton _startGameButton;
|
|||
|
private static readonly int Anim = Animator.StringToHash("IsOpened");
|
|||
|
|
|||
|
public Close(StartGameButton startGameButton) : base(LaptopStates.Close)
|
|||
|
{
|
|||
|
_startGameButton = startGameButton;
|
|||
|
}
|
|||
|
|
|||
|
public override void Enter()
|
|||
|
{
|
|||
|
_startGameButton.canvas.SetActive(false);
|
|||
|
_startGameButton.Animator.SetBool(Anim, false);
|
|||
|
}
|
|||
|
|
|||
|
public override void Exit()
|
|||
|
{
|
|||
|
}
|
|||
|
}
|
|||
|
}
|