EnemyBase.InitAttributes C# (CSharp) Method

InitAttributes() protected method

Initializes the attributes.
protected InitAttributes ( ) : void
return void
    protected void InitAttributes()
    {
        this.minWaypointDisplacement = this.objectManager.MapData.NodeSize.x / 10;
        this.animator = this.GetComponent<Animator>();
        this.SetPath (this.objectManager.Pathfinding.Astar (this.onNode, this.objectManager.WaveManager.destinationNode));
        this.animator.speed = this.speed;

        this.maxHealth = this.baseHealth + (int)(this.baseHealth * ((float)this.objectManager.gameState.dificultyFactor * (float)(this.objectManager.gameState.waveCount)));
        this.moneyValue = this.baseMoneyValue + (int)(this.baseMoneyValue * this.objectManager.gameState.enemyValueFactor * (this.objectManager.gameState.waveCount));
        this.health = this.maxHealth;
    }