コード例 #1
0
 protected override void Death()
 {
     _counter.AddCount(5, _transform.position);
     _player.FreeAttackPlace(transform);
     Toolbox.Get <EndLevelChecker>().UpdateKillCount();
     base.Death();
 }
コード例 #2
0
    public void UpdateHitCount(Vector3 enemyPosition)
    {
        _hitCount++;
        if (_hitCount > _maxHitCount)
        {
            _maxHitCount     = _hitCount;
            _maxHitText.text = _maxHitCount.ToString();
        }

        if (_textCombo.CheckText(_hitCount))
        {
            Toolbox.Get <ParticleManager>().PlayDetachedParticle(_electricExplo, _xTextMexh.transform.position, 0.8f, _xTextMexh.transform);
        }
        _scoreCounter.AddCount(_hitCount, enemyPosition);
        _xTextMexh.text = "x" + _hitCount;
        _animator.Play(_zoom.name);
        _xTextDissolution.StartDissolution(_dissolutionTime, ClearHits);
    }