39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using FSM;
|
|
using Unity.VisualScripting;
|
|
using UnityEngine;
|
|
using ZXKFramework;
|
|
namespace YiLiao.JingMaiLiuZhiZhen
|
|
{
|
|
public class ShuangRenQianMingState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowCamera("ShuangRenQianMingState_Camera");
|
|
fsm.ShowTip(0,true);
|
|
fsm.PlayBgm(0,true);
|
|
fsm.PlayClip("双人签名", () => {
|
|
fsm.ShowSpeakPanel(new Vector3(473, -41),"","", 0, 0, SpeakAction);
|
|
});
|
|
}
|
|
|
|
private void SpeakAction(int arg1, string arg2)
|
|
{
|
|
if(fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.AddScore(1, 1);
|
|
}
|
|
//fsm.Get("长期医嘱单2").GetOrAddComponent<YiZhuDan>().SetTxt(arg2);
|
|
fsm.PlayClip("双人签名2", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.PlayClip("双人签名Reset");
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|