End Menu with kills counts
This commit is contained in:
@@ -29,12 +29,6 @@ public class PlayerManager : MonoBehaviour
|
||||
public float laserOnX = 0f;
|
||||
public float laserOnY = 0f;
|
||||
|
||||
// Kills stats
|
||||
[Header("Kills Stats")]
|
||||
public int MayorKills = 0;
|
||||
public int MinautorKills = 0;
|
||||
public int BringerOfDeathKills = 0;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject pauseMenu;
|
||||
[SerializeField]
|
||||
@@ -66,6 +60,20 @@ public class PlayerManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
// --- CHARACTER STATS ---------------------------------------------------------------------
|
||||
public void TakeDamage(int value)
|
||||
{
|
||||
Health -= value;
|
||||
if (Health <= 0)
|
||||
{
|
||||
Health = 0;
|
||||
|
||||
Time.timeScale = 0f;
|
||||
deathScreen.SetActive(true);
|
||||
deathScreen.GetComponent<DeathScreen>().ShowScreen();
|
||||
}
|
||||
}
|
||||
|
||||
public void AddExperience(int value)
|
||||
{
|
||||
Exp += value;
|
||||
@@ -80,20 +88,6 @@ public class PlayerManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
// --- CHARACTER STATS ---------------------------------------------------------------------
|
||||
public void TakeDamage(int value)
|
||||
{
|
||||
Health -= value;
|
||||
if (Health <= 0)
|
||||
{
|
||||
Health = 0;
|
||||
|
||||
Time.timeScale = 0f;
|
||||
deathScreen.SetActive(true);
|
||||
deathScreen.GetComponent<DeathScreen>().ShowScreen();
|
||||
}
|
||||
}
|
||||
|
||||
public void Heal()
|
||||
{
|
||||
Health += HealValue;
|
||||
|
||||
Reference in New Issue
Block a user