|
|
@@ -389,8 +389,14 @@ public class EnemyCreater : MonoBehaviour
|
|
|
//³ö¹Ö±íÿһÐйÖ
|
|
|
public void CreateEnemy(SingleCreateEnemyConfig cfg, Vector3 pos, bool active = false)
|
|
|
{
|
|
|
- CreateEnemyInit(cfg.EnemyName, cfg.WaveName,
|
|
|
- cfg.HPRatio, cfg.AttackRatio, cfg.SpeedRatio, cfg.ArmorRatio, cfg.ArmorPiercingRatio,
|
|
|
+ float ratio = GameManager.instance.levelRatio;
|
|
|
+ CreateEnemyInit(cfg.EnemyName,
|
|
|
+ cfg.WaveName,
|
|
|
+ cfg.HPRatio * ratio,
|
|
|
+ cfg.AttackRatio * ratio,
|
|
|
+ cfg.SpeedRatio * ratio,
|
|
|
+ cfg.ArmorRatio * ratio,
|
|
|
+ cfg.ArmorPiercingRatio * ratio,
|
|
|
pos, active);
|
|
|
}
|
|
|
|