示例#1
0
    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();
    }
示例#2
0
 public void Death()
 {
     OnDuckDeath?.Invoke(this);
 }