Exemple #1
0
        private void GiveHealthToPlayer()
        {
            HealthManager playerHealth = GameObject.FindGameObjectWithTag("Player").GetComponent <HealthManager>();

            playerHealth.AddCurrentHealth(_currentHealth);
            onHeal.Raise();
            UpdateCurrentHealth(0);
            _giveHealth = true;
            StartCoroutine(WaitForUnHealth(2f));
        }