// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); health = GetComponent <Health>(); health.onDie += OnDie; health.onDamaged += OnDamaged; hp = GetComponent <WallAndCoreHpUI>(); }
// Start is called before the first frame update void Start() { health = GetComponent <Health>(); health.onDie += OnDie; hp = GetComponent <WallAndCoreHpUI>(); }