/// 終了 public void End() { if( mvtActPlayer != null ){ mvtActPlayer.End(); } useChParam = null; playMvt = null; }
/// 終了 public void End() { if (mvtActPlayer != null) { mvtActPlayer.End(); } useChParam = null; playMvt = null; }
/// 再生チェック private int getPlayMvtIndex(int playId) { Data.MvtData mvtRes = useChParam.GetMvt(playId); if (mvtRes.Num <= 0) { return(-1); } return(0); }
/// 開始 public bool Start(ActorUnitCommon useCmn, Data.CharParamData useParam) { End(); this.useChParam = useParam; playMvt = null; playMvtId = -1; playMvtIdx = -1; return(mvtActPlayer.Start(useCmn, useParam)); }
/// 破棄 public void Term() { End(); if (mvtActPlayer != null) { mvtActPlayer.Term(); } mvtActPlayer = null; playMvt = null; }
/// 動作アクション再生命令 private bool setMvtActPlay(int playId, int mvtIdx, int actIdx) { Data.MvtData mvtRes = useChParam.GetMvt(playId); int mvtActId = mvtRes.GetActResId(mvtIdx, actIdx); if (mvtActPlayer.SetPlay(mvtActId, 0) == false) { return(false); } return(true); }
/// 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 メソッド ///--------------------------------------------------------------------------- /// 動作再生の準備 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; }
/// 破棄 public void Term() { End(); if( mvtActPlayer != null ){ mvtActPlayer.Term(); } mvtActPlayer = null; playMvt = null; }
/// 開始 public bool Start( ActorUnitCommon useCmn, Data.CharParamData useParam ) { End(); this.useChParam = useParam; playMvt = null; playMvtId = -1; playMvtIdx = -1; return( mvtActPlayer.Start( useCmn, useParam ) ); }