private void Instance_OnHeartChanged(object sender, Health.OnHeartChangedEventAgrs e) { if (e.isRestore) { gameObject.SetActive(false); } }
private void Instance_OnHeartChanged(object sender, Health.OnHeartChangedEventAgrs e) { hearts[e.currentHealth - 1].enabled = e.isRestore; }