public void Attach <TModel, TView>(Chara.CharaControl <TModel, TView> charaControl, bool isResume) where TModel : Chara.CharaModel where TView : Chara.ViewBase { AIBase attackAI = null; switch (_attackAIData.AttackAIType) { case Const.AttackAIType.Normal: attackAI = charaControl.AttachAttackAI <AINormalAttack>(isResume); break; default: Utility.Log.Error("AttackAIを作成できませんでした。無効のタイプ " + _attackAIData.AttackAIType); return; } attackAI.Setup(_attackAIData); }
public void Attach <TModel, TView>(Chara.CharaControl <TModel, TView> charaControl, bool isResume) where TModel : Chara.CharaModel where TView : Chara.ViewBase { AIBase moveAI = null; switch (_moveAIData.MoveAIType) { case Const.MoveAIType.Random: moveAI = charaControl.AttachMoveAI <AIRandom>(isResume); break; case Const.MoveAIType.NormalTracking: moveAI = charaControl.AttachMoveAI <AINormalTracking>(isResume); break; default: Utility.Log.Error("MoveAIを作成できませんでした。無効のタイプ " + _moveAIData.MoveAIType); return; } moveAI.Setup(_moveAIData); }