smart-interactive-display/Assets/GadGame/Scripts/State/MainFlowState/RewardState.cs

27 lines
539 B
C#
Raw Normal View History

2024-04-11 01:55:35 -07:00
using GadGame.Manager;
2024-04-15 04:10:00 -07:00
namespace GadGame.State.MainFlowState
2024-04-11 01:55:35 -07:00
{
public class RewardState : State<MainFlow>
{
2024-04-15 04:10:00 -07:00
2024-04-11 01:55:35 -07:00
public override void Enter()
{
2024-04-15 04:10:00 -07:00
LoadSceneManager.Instance.LoadSceneWithTransition(Runner.SceneFlowConfig.RewardScene.ScenePath);
2024-04-11 01:55:35 -07:00
}
2024-04-15 04:10:00 -07:00
public override void Update(float time)
2024-04-11 01:55:35 -07:00
{
2024-04-15 04:10:00 -07:00
if (time >= 5)
2024-04-11 01:55:35 -07:00
{
2024-04-15 04:10:00 -07:00
Runner.SetState<CTAState>();
2024-04-11 01:55:35 -07:00
}
}
public override void Exit()
{
}
}
}