2025-09-25 17:30:19 +08:00

73 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using FSM;
using System.Buffers;
using UnityEngine;
using ZXKFramework;
namespace DongWuYiXue.DaoNiaoShu
{
public class BaoLuYinJingState : FsmState<FSMManager>
{
public override void OnStateEnter()
{
base.OnStateEnter();
this.Log("进入暴露阴茎状态");
fsm.Show("女助手文字位置");
fsm.ShowCamera("暴露阴茎1_Camera");
fsm.ShowTip(0);
fsm.PlayBgm(0);
fsm.ShowSpeakPanel("插入导尿管》暴露阴茎", "请助手继续将包皮向后推压暴露阴茎2-5cm", new Vector3(-220f, 235f), 2, 0, 3, (c) =>
{
fsm.Hide("女助手文字位置");
fsm.ShowCamera("暴露阴茎2_Camera");
fsm.PlayClip("暴露阴茎_TimeLine", () =>
{
fsm.nextState = true;
});
});
}
private void SpeakAction(int arg1, string arg2)
{
switch (arg1)
{
case 0:
fsm.AddScore(0, 0);
break;
case 1:
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
{
fsm.AddScore(3, 0);
}
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
{
fsm.AddScore(3, 0);
}
break;
case 2:
fsm.AddScore(0, 0, true);
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
break;
default:
break;
}
fsm.Hide("女助手文字位置");
fsm.ShowCamera("暴露阴茎2_Camera");
fsm.PlayClip("暴露阴茎_TimeLine", () =>
{
fsm.nextState = true;
});
}
public override void OnStateStay()
{
base.OnStateStay();
}
public override void OnStateExit()
{
base.OnStateExit();
GameManager.Instance.uiManager.CloseUI<SpeakPanel>();
fsm.Hide("女助手文字位置");
fsm.nextState = false;
}
}
}