Пример #1
0
    public void ReportItemCollected( Collectible col )
    {
        _itemsCollected++;
        if(col == null) return;
        KillCollectibleAfterTime kcat = col.GetComponent<KillCollectibleAfterTime>();
        if ( kcat != null && !kcat.isKilling && _spawnTargetActive)
        {
            col.ReportCollection();
            _currentItemTarget--;
        }

        ReportScore();
        if ( _spawnTargetActive ) CheckCompleteSpawnSite();
        CheckBeatGame();
    }