/// private メソッド ///--------------------------------------------------------------------------- /// 動作再生の準備 private bool setupMvtPlay(int playId, int index) { playMvt = useChParam.GetMvt(playId); playMvtId = playId; playMvtIdx = index; playMvtActIdx = 0; playMvtActMax = playMvt.GetActResNum(index); /// アクション再生登録 playActiveFlg = setMvtActPlay(playId, index, 0); return(true); }
/// アニメーション再生だけを行う動作のセット private int setNormalMvt(Data.CharParamData chParam, int mvtId, int useActNum, int animNo) { Data.MvtData mvtRes; Data.MvtActData actRes; mvtRes = chParam.GetMvt(mvtId); actRes = chParam.GetMvtAct(useActNum); mvtRes.Make(1); actRes.Make(1); mvtRes.AddParam(0, 5); /// アクションの登録 mvtRes.SetParamAddActionRes(0, useActNum); actRes.AddParam((int)Data.ChMvtActCmdId.Animation, 0.0f, 0.0f, animNo, 0, 0, 0, 0); useActNum++; return(useActNum); }