Esempio n. 1
0
 private void Awake()
 {
     _rigidbody2d = GetComponent <Rigidbody2D>();
     _animator    = GetComponent <Animator>();
     _weapon      = GetComponentInChildren <EnemyWeapon>();
     _enemy       = GetComponent <Enemy>();
     _weapon.InputDamage(damage);
 }