示例#1
0
        public NormalEnemy(Transform normalEnemyObj, EnemyDT data)
        {
            enemyObj       = normalEnemyObj;
            speed          = data.GetData().GetSpeed();
            attackRange    = data.GetData().GetAttackRange();
            startMoveRange = data.GetData().GetStartMoveRange();

            animator = enemyObj.GetComponent <Animator>();
        }
示例#2
0
        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>();
        }
示例#3
0
 public BossEnemy(Transform bossEnemyObj, EnemyDT data)
 {
     enemyObj    = bossEnemyObj;
     speed       = data.GetData().GetSpeed();
     attackRange = data.GetData().GetAttackRange();
 }