예제 #1
0
    private void SetAllStats()
    {
        myStats.health          = EnemyStatsManager.Instance.blasterShotgunStats.health;
        myStats.maxHealth       = EnemyStatsManager.Instance.blasterShotgunStats.maxHealth;
        myStats.skinnableHealth = EnemyStatsManager.Instance.blasterShotgunStats.skinnableHealth;
        myStats.moveSpeed       = EnemyStatsManager.Instance.blasterShotgunStats.speed;
        myStats.attack          = EnemyStatsManager.Instance.blasterShotgunStats.attack;

        navAgent.speed            = EnemyStatsManager.Instance.blasterShotgunStats.speed;
        navAgent.angularSpeed     = EnemyStatsManager.Instance.blasterShotgunStats.angularSpeed;
        navAgent.acceleration     = EnemyStatsManager.Instance.blasterShotgunStats.acceleration;
        navAgent.stoppingDistance = EnemyStatsManager.Instance.blasterShotgunStats.stoppingDistance;

        scoreValue  = EnemyStatsManager.Instance.blasterShotgunStats.scoreValue;
        eatHealth   = EnemyStatsManager.Instance.blasterShotgunStats.eatHealth;
        stunnedTime = EnemyStatsManager.Instance.blasterShotgunStats.stunnedTime;

        closeEnoughToFireDistance = EnemyStatsManager.Instance.blasterShotgunStats.closeEnoughToFireDistance;
        maxToleranceTime          = EnemyStatsManager.Instance.blasterShotgunStats.maxToleranceTime;

        bulletHellController.SetBulletHellProperties(EnemyStatsManager.Instance.blasterShotgunStats.separationFromForwardVector,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.bulletSpeed, EnemyStatsManager.Instance.blasterShotgunStats.bulletDamage,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.rateOfFire,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.bulletOffsetFromOrigin,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.bulletStrands,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.separationAngleBetweenStrands,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.rotationDirection,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.rotationSpeedBulletHellController,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.bulletLiveTime,
                                                     EnemyStatsManager.Instance.blasterShotgunStats.animationDriven);



        myStats.SetStats();
    }
예제 #2
0
    private void SetAllStats()
    {
        if (enemyType.Equals(SpawnType.Bouncer))
        {
            myStats.health          = EnemyStatsManager.Instance.bouncerStats.health;
            myStats.maxHealth       = EnemyStatsManager.Instance.bouncerStats.maxHealth;
            myStats.skinnableHealth = EnemyStatsManager.Instance.bouncerStats.skinnableHealth;
            myStats.moveSpeed       = EnemyStatsManager.Instance.bouncerStats.speed;
            myStats.attack          = EnemyStatsManager.Instance.bouncerStats.attack;

            navAgent.speed            = EnemyStatsManager.Instance.bouncerStats.speed;
            navAgent.angularSpeed     = EnemyStatsManager.Instance.bouncerStats.angularSpeed;
            navAgent.acceleration     = EnemyStatsManager.Instance.bouncerStats.acceleration;
            navAgent.stoppingDistance = EnemyStatsManager.Instance.bouncerStats.stoppingDistance;

            scoreValue  = EnemyStatsManager.Instance.bouncerStats.scoreValue;
            eatHealth   = EnemyStatsManager.Instance.bouncerStats.eatHealth;
            stunnedTime = EnemyStatsManager.Instance.bouncerStats.stunnedTime;

            properties.maxBounces    = EnemyStatsManager.Instance.bouncerStats.maxBounces;
            properties.minBounces    = EnemyStatsManager.Instance.bouncerStats.minBounces;
            properties.maxShots      = EnemyStatsManager.Instance.bouncerStats.maxShots;
            properties.minShots      = EnemyStatsManager.Instance.bouncerStats.minShots;
            properties.rotationSpeed = EnemyStatsManager.Instance.bouncerStats.rotationSpeed;
            properties.rotate        = EnemyStatsManager.Instance.bouncerStats.rotate;

            bulletPatternController.SetBulletHellProperties(EnemyStatsManager.Instance.bouncerStats.separationFromForwardVector, EnemyStatsManager.Instance.bouncerStats.bulletSpeed, EnemyStatsManager.Instance.bouncerStats.bulletDamage, EnemyStatsManager.Instance.bouncerStats.rateOfFire, EnemyStatsManager.Instance.bouncerStats.bulletOffsetFromOrigin, EnemyStatsManager.Instance.bouncerStats.bulletStrands, EnemyStatsManager.Instance.bouncerStats.separationAngleBetweenStrands, EnemyStatsManager.Instance.bouncerStats.rotationDirection, EnemyStatsManager.Instance.bouncerStats.rotationSpeed,
                                                            EnemyStatsManager.Instance.bouncerStats.bulletLiveTime, EnemyStatsManager.Instance.bouncerStats.animationDriven);
        }
        else if (enemyType.Equals(SpawnType.RedBouncer))
        {
            myStats.health          = EnemyStatsManager.Instance.redBouncerStats.health;
            myStats.maxHealth       = EnemyStatsManager.Instance.redBouncerStats.maxHealth;
            myStats.skinnableHealth = EnemyStatsManager.Instance.redBouncerStats.skinnableHealth;
            myStats.moveSpeed       = EnemyStatsManager.Instance.redBouncerStats.speed;
            myStats.attack          = EnemyStatsManager.Instance.redBouncerStats.attack;

            navAgent.speed            = EnemyStatsManager.Instance.redBouncerStats.speed;
            navAgent.angularSpeed     = EnemyStatsManager.Instance.redBouncerStats.angularSpeed;
            navAgent.acceleration     = EnemyStatsManager.Instance.redBouncerStats.acceleration;
            navAgent.stoppingDistance = EnemyStatsManager.Instance.redBouncerStats.stoppingDistance;

            scoreValue  = EnemyStatsManager.Instance.redBouncerStats.scoreValue;
            eatHealth   = EnemyStatsManager.Instance.redBouncerStats.eatHealth;
            stunnedTime = EnemyStatsManager.Instance.redBouncerStats.stunnedTime;

            properties.maxBounces    = EnemyStatsManager.Instance.redBouncerStats.maxBounces;
            properties.minBounces    = EnemyStatsManager.Instance.redBouncerStats.minBounces;
            properties.maxShots      = EnemyStatsManager.Instance.redBouncerStats.maxShots;
            properties.minShots      = EnemyStatsManager.Instance.redBouncerStats.minShots;
            properties.rotationSpeed = EnemyStatsManager.Instance.redBouncerStats.rotationSpeed;
            properties.rotate        = EnemyStatsManager.Instance.redBouncerStats.rotate;

            bulletPatternController.SetBulletHellProperties(EnemyStatsManager.Instance.redBouncerStats.separationFromForwardVector, EnemyStatsManager.Instance.redBouncerStats.bulletSpeed, EnemyStatsManager.Instance.redBouncerStats.bulletDamage, EnemyStatsManager.Instance.redBouncerStats.rateOfFire, EnemyStatsManager.Instance.redBouncerStats.bulletOffsetFromOrigin, EnemyStatsManager.Instance.redBouncerStats.bulletStrands, EnemyStatsManager.Instance.redBouncerStats.separationAngleBetweenStrands, EnemyStatsManager.Instance.redBouncerStats.rotationDirection, EnemyStatsManager.Instance.redBouncerStats.rotationSpeed,
                                                            EnemyStatsManager.Instance.redBouncerStats.bulletLiveTime, EnemyStatsManager.Instance.redBouncerStats.animationDriven);
        }
        else if (enemyType.Equals(SpawnType.GreenBouncer))
        {
            myStats.health          = EnemyStatsManager.Instance.greenBouncerStats.health;
            myStats.maxHealth       = EnemyStatsManager.Instance.greenBouncerStats.maxHealth;
            myStats.skinnableHealth = EnemyStatsManager.Instance.greenBouncerStats.skinnableHealth;
            myStats.moveSpeed       = EnemyStatsManager.Instance.greenBouncerStats.speed;
            myStats.attack          = EnemyStatsManager.Instance.greenBouncerStats.attack;

            navAgent.speed            = EnemyStatsManager.Instance.greenBouncerStats.speed;
            navAgent.angularSpeed     = EnemyStatsManager.Instance.greenBouncerStats.angularSpeed;
            navAgent.acceleration     = EnemyStatsManager.Instance.greenBouncerStats.acceleration;
            navAgent.stoppingDistance = EnemyStatsManager.Instance.greenBouncerStats.stoppingDistance;

            scoreValue  = EnemyStatsManager.Instance.greenBouncerStats.scoreValue;
            eatHealth   = EnemyStatsManager.Instance.greenBouncerStats.eatHealth;
            stunnedTime = EnemyStatsManager.Instance.greenBouncerStats.stunnedTime;

            properties.maxBounces    = EnemyStatsManager.Instance.greenBouncerStats.maxBounces;
            properties.minBounces    = EnemyStatsManager.Instance.greenBouncerStats.minBounces;
            properties.maxShots      = EnemyStatsManager.Instance.greenBouncerStats.maxShots;
            properties.minShots      = EnemyStatsManager.Instance.greenBouncerStats.minShots;
            properties.rotationSpeed = EnemyStatsManager.Instance.greenBouncerStats.rotationSpeed;
            properties.rotate        = EnemyStatsManager.Instance.greenBouncerStats.rotate;

            bulletPatternController.SetBulletHellProperties(EnemyStatsManager.Instance.greenBouncerStats.separationFromForwardVector, EnemyStatsManager.Instance.greenBouncerStats.bulletSpeed, EnemyStatsManager.Instance.greenBouncerStats.bulletDamage, EnemyStatsManager.Instance.greenBouncerStats.rateOfFire, EnemyStatsManager.Instance.greenBouncerStats.bulletOffsetFromOrigin, EnemyStatsManager.Instance.greenBouncerStats.bulletStrands, EnemyStatsManager.Instance.greenBouncerStats.separationAngleBetweenStrands, EnemyStatsManager.Instance.greenBouncerStats.rotationDirection, EnemyStatsManager.Instance.greenBouncerStats.rotationSpeed,
                                                            EnemyStatsManager.Instance.greenBouncerStats.bulletLiveTime, EnemyStatsManager.Instance.greenBouncerStats.animationDriven);
        }

        myStats.SetStats();
    }