33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using FSM;
|
|
using System.Collections.Generic;
|
|
using ZXKFramework;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class JieGuoState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
GameManager.Instance.timeCounterManager.StopTimeCounter();
|
|
GameManager.Instance.uiManager.ShowUI<ChengJiPanel>();
|
|
|
|
ChatAI.Instance.transform.FindFirst("AICanvas").SetActive(true);
|
|
string temp = "";
|
|
List<Step> steps = GameManager.Instance.kaoheManager.results;
|
|
for (int i = 0; i < steps.Count; i++)
|
|
{
|
|
Step step = steps[i];
|
|
temp += step.parentName + "-" + step.stepName + ":步骤满分=" + step.maxScore + ",步骤得分=" + step.score + ",步骤类型=" + step.stepType + "|\n";
|
|
}
|
|
string result = "系统消息:请你结合知识库,对用户的成绩做出分析,并给出指导意见,回答字数控制在120字之内。用户的总成绩为" + GameManager.Instance.kaoheManager.totalScore + ",详细数据:" + temp;
|
|
ChatUI.Instance.SendAI(result, null);
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
GameManager.Instance.uiManager.CloseUI<ChengJiPanel>();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|