Beispiel #1
0
 public override void Awake()
 {
     characterHealth   = GetComponent <CharacterHealth>();
     characterLoot     = GetComponent <CharacterLoot>();
     characterLevel    = GetComponent <CharacterLevel>();
     enemyAttackRanged = GetComponentInChildren <EnemyAttackRanged>();
     enemyAttackMelee  = GetComponent <EnemyAttackMelee>();
     enemyExperience   = GetComponent <EnemyExperience>();
 }
Beispiel #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>();
 }
Beispiel #3
0
 private void Start()
 {
     animator          = GetComponent <Animator>();
     health            = GetComponent <Health>();
     body              = GetComponent <Rigidbody2D>();
     characterCollider = GetComponent <CapsuleCollider2D>();
     spriteRenderer    = GetComponentInChildren <SpriteRenderer>();
     attackRanged      = GetComponent <EnemyAttackRanged>();
     player            = FindObjectOfType <PlayerMovement>();
     gameManager       = FindObjectOfType <GameManager>();
     audioSource       = GetComponent <AudioSource>();
 }