2025-09-19 17:28:05 +08:00

47 lines
1.6 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;
namespace YiLiao.JingMaiLiuZhiZhen
{
public class ZhanShuYePingQianState : FsmState<FSMManager>
{
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowCamera("ZhanShuYePingQianState_Camera");
fsm.PlayClip("Õ³ÊäҺƿǩ", () => {
fsm.ShowCamera("ZhanShuYePingQianState_Camera2");
//fsm.ShowTip(0);
//fsm.PlayBgm(0);
//fsm.Show_Light_EnableInteraction("ÊäҺƿǩ");
fsm.PlayClip("Õ³ÊäҺƿǩ2", () => {
//fsm.AddScore(1, 1);
fsm.nextState = true;
});
});
//fsm.InteractionDown("ÊäҺƿǩ", obj => {
// fsm.Show_Light_EnableInteraction("ÊäҺƿǩ_ÍÏקλÖÃ");
//});
//fsm.InteractionUp("ÊäҺƿǩ", obj => {
// fsm.Hide_Unlight_DisableInteraction("ÊäҺƿǩ_ÍÏקλÖÃ");
//});
//fsm.InteractionTrigger("ÊäҺƿǩ_ÍÏקλÖÃ", obj =>
//{
// if(obj.name == "ÊäҺƿǩ")
// {
// fsm.Hide_Unlight_DisableInteraction("ÊäҺƿǩ");
// fsm.InteractionTrigger("ÊäҺƿǩ_ÍÏקλÖÃ",null);
// fsm.PlayClip("Õ³ÊäҺƿǩ2", () => {
// fsm.nextState = true;
// });
// }
//});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.PlayClip("Õ³ÊäҺƿǩReset");
fsm.nextState = false;
}
}
}