2025-09-09 15:06:44 +08:00
|
|
|
|
using FSM;
|
2025-09-09 17:30:50 +08:00
|
|
|
|
using System.Buffers;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using ZXKFramework;
|
2025-09-09 15:06:44 +08:00
|
|
|
|
namespace DongWuYiXue.DaoNiaoShu
|
|
|
|
|
|
{
|
|
|
|
|
|
public class TiWeiState : FsmState<FSMManager>
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void OnStateEnter()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateEnter();
|
2025-09-09 17:30:50 +08:00
|
|
|
|
this.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ״̬");
|
|
|
|
|
|
fsm.Show("Ů<><C5AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>");
|
|
|
|
|
|
fsm.ShowCamera("<22><>λ_Camera");
|
|
|
|
|
|
fsm.ShowTip(0);
|
|
|
|
|
|
fsm.PlayBgm(0);
|
|
|
|
|
|
fsm.ShowSpeakPanel(new Vector3(-25f, 85f),
|
|
|
|
|
|
"<22><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE>λ<EFBFBD>ڷ<EFBFBD>Ϊ<EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>λ",
|
|
|
|
|
|
"<22>Ҳ<EFBFBD><D2B2><EFBFBD>λ", 2, 1, SpeakAction);
|
2025-09-09 15:06:44 +08:00
|
|
|
|
}
|
2025-09-09 17:30:50 +08:00
|
|
|
|
|
|
|
|
|
|
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(5, 0);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
|
|
|
|
|
{
|
|
|
|
|
|
fsm.AddScore(1, 0);
|
|
|
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
fsm.PlayClip("<22><>λ_TimeLine", () =>
|
|
|
|
|
|
{
|
|
|
|
|
|
fsm.nextState = true;
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-09 15:06:44 +08:00
|
|
|
|
public override void OnStateStay()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateStay();
|
|
|
|
|
|
}
|
|
|
|
|
|
public override void OnStateExit()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateExit();
|
2025-09-09 17:30:50 +08:00
|
|
|
|
fsm.Hide("Ů<><C5AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>");
|
|
|
|
|
|
fsm.nextState = false;
|
2025-09-09 15:06:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|