Esempio n. 1
0
    private void SpawnPopup(HealthHaver dead)
    {
        Enemy enemy = dead.GetComponent <Enemy>();

        if (enemy == null || !enemy.enabled)
        {
            return;
        }
        ScorePopup myPopupPrefab = Instantiate(popupPrefab, dead.transform.position, quaternion.identity);

        myPopupPrefab.DisplayScore(enemy.Value * GlobalStats.DifficultyMultiplier(GlobalStats.instance.SelectedDifficulty));
        myPopupPrefab.DisplayCombo(comboerToRead.NumberAbsorbed);
    }