打開動畫藍(lán)圖的EventGraph 按住b 添加Branch節(jié)點 判斷是否按下punch 添加DoOnce節(jié)點 保證后續(xù)的操作只執(zhí)行一次 除非松開Punch重置該節(jié)點
右鍵 添加custom event 命名為Punch 連接Montage Play 設(shè)置asset屬性為之前創(chuàng)建的資源文件 doOnce 連接調(diào)用CallFunction/Punch
右鍵搜索之前添加的兩個Notify 根據(jù)isPunching 變量來決定是否跳轉(zhuǎn)到下一個Section 涉及到Montage Set NextSection 修改里面的當(dāng)前section 和NextSection