编辑Tracker蓝图
在Event Begin Play 中 获得自定义的PlayerController保存到变量ControllerReference中 调用一些列的初始设置
添加自定义事件ApplySetting 其中 将MaxLaps属性设置到controller中 调用之前定义的函数UpdateTimes函数 将时间相关的变量设置到Controller中 然后调用controllser的StartGameSetUp函数进行controller初始话
添加自定义事假StartSequence 用来遍历设置检查点信息 同时绑定event dispatch函数 当车辆触碰到检查点是进行调用
遍历设置检查点id
激活第一个检查点
遍历绑定事件
添加检查点逻辑 当碰撞后 调用函数LapCheck 同时播放音效 根据PlayerController 的RaceComplate判断是否结束 如果结束的调用Controller的Restart方法
播放背景音乐