public override void Death() { OnDuckDeath?.Invoke(this); _scoreText.transform.SetParent(null, true); _scoreText.transform.rotation = Quaternion.identity; _scoreText.transform.position = transform.position; _scoreText.gameObject.SetActive(true); _scoreText.text = GetScore().ToString(); Destroy(_scoreText.gameObject, 3f); base.Death(); }
public void Death() { OnDuckDeath?.Invoke(this); }