public NormalEnemy(Transform normalEnemyObj, EnemyDT data) { enemyObj = normalEnemyObj; speed = data.GetData().GetSpeed(); attackRange = data.GetData().GetAttackRange(); startMoveRange = data.GetData().GetStartMoveRange(); animator = enemyObj.GetComponent <Animator>(); }
public TurretEnemy(Transform turretEnemyObj, EnemyDT data) { enemyObj = turretEnemyObj; shotRange = data.GetData().GetShotRange(); attackCooldown = data.GetData().GetAttackCooldown(); timer = attackCooldown; startMoveRange = data.GetData().GetStartMoveRange(); speed = data.GetData().GetSpeed(); attackRange = data.GetData().GetAttackRange(); animator = enemyObj.GetComponent <Animator>(); }
public BossEnemy(Transform bossEnemyObj, EnemyDT data) { enemyObj = bossEnemyObj; speed = data.GetData().GetSpeed(); attackRange = data.GetData().GetAttackRange(); }