void Start() { config = GetComponent <EnemyPrefabConfig> (); model = config.enemyModel; view = config.enemyView; model.SetMaxHealth(config.maxHealth); }
void Start() { config = GetComponent <EnemyPrefabConfig> (); movementController = GetComponent <MovementController> (); owningPlayer = config.owningPlayer; sfx = config.sfx; anim = config.anim; model = config.enemyModel; healthBar = config.healthBar; onKillMoney = config.onKillMoney; }