/// <summary> /// 敵Controlを返す /// </summary> public EnemyControl FindEnemyByModel(CharaModel model) { foreach (var enemyControlGroup in _enemyControlGroups) { var enemy = enemyControlGroup.FindEnemyByModel(model); if (enemy != null) { return(enemy); } } return(null); }
public CharaFactory(GameObject prefab, Transform root, CharaModel model) { _model = model; }
/// <summary> /// 敵Viewを検索して取得 /// </summary> public EnemyControl FindEnemyByModel(CharaModel model) => _keyModelValueControl[model];