void Awake() { enemyMotion = GetComponent<EnemyMotion>(); enemySprite = enemyMotion.GetComponent<SpriteRenderer>(); enemyTransform = enemyMotion.spriteTransform; enemyAudio = GetComponent<AudioSource>(); }
void Awake() { damageTaker = GetComponent<DamageTaker>(); enemyMotion = GetComponent<EnemyMotion>(); enemySprite = enemyMotion.GetComponent<SpriteRenderer>(); enemyTransform = enemyMotion.spriteTransform; }