39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using FSM;
|
|
using UnityEngine;
|
|
using ZXKFramework;
|
|
namespace YiLiao.JingMaiLiuZhiZhen
|
|
{
|
|
public class QianShuZhiXingDanState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowCamera("QianShuZhiXingDanState_Camera");
|
|
fsm.ShowTip(0,true);
|
|
fsm.PlayBgm(0,true);
|
|
fsm.PlayClip("푯憾獵契데", () => {
|
|
fsm.ShowSpeakPanel(new Vector3(200, -150), "", "", 0, 0, SpeakAction);
|
|
});
|
|
}
|
|
|
|
private void SpeakAction(int arg1, string arg2)
|
|
{
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.AddScore(1, 1);
|
|
}
|
|
//fsm.Get("낀퍅努僚데3").GetOrAddComponent<YiZhuDan>().SetTxt(arg2);
|
|
fsm.PlayClip("푯憾獵契데2", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.PlayClip("푯憾獵契데Reset");
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|