public override void OnInit() { base.OnInit(); GetComponentInChildren <DamageDealer>().Init(OnGiveDamage); DamageTaker damageTaker = GetComponentInChildren <DamageTaker>(); if (damageTaker) { damageTaker.Init(OnTakeDamage); } }