Пример #1
0
    private void SettingUpEnemy(EnemyInfo enemyEncountered)
    {
        myAnimatorController.runtimeAnimatorController = enemyEncountered.GetEnemyAnimatorController();

        nameText.text = "Lv " + enemyEncountered.GetEnemyLevel() + " " + enemyEncountered.GetEnemyName();

        maxHealthPoints = enemyEncountered.GetEnemyHealthPoints();
        strength        = enemyEncountered.GetEnemyStrength();
        defense         = enemyEncountered.GetEnemyDefense();
        speed           = enemyEncountered.GetEnemySpeed();
    }