Exemplo n.º 1
0
 public override void Awake()
 {
     characterHealth   = GetComponent <CharacterHealth>();
     characterLoot     = GetComponent <CharacterLoot>();
     characterLevel    = GetComponent <CharacterLevel>();
     enemyAttackRanged = GetComponentInChildren <EnemyAttackRanged>();
     enemyAttackMelee  = GetComponent <EnemyAttackMelee>();
     enemyExperience   = GetComponent <EnemyExperience>();
 }
Exemplo n.º 2
0
 public void Awake()
 {
     spriteRenderer    = GetComponent <SpriteRenderer>();
     characterHealth   = GetComponent <CharacterHealth>();
     characterLoot     = GetComponent <CharacterLoot>();
     enemyMovement     = GetComponent <EnemyMovement>();
     enemyAttackRanged = GetComponentInChildren <EnemyAttackRanged>();
     enemyAttackMelee  = GetComponentInChildren <EnemyAttackMelee>();
     enemyExperience   = GetComponent <EnemyExperience>();
 }