public void damagePlayer(int damage)
{
currenthealth-=damage;
if (currenthealth <= 0) {
if (destroyOnDeath == true)
Destroy (gameObject);
else
{
gameObject.transform.position = GRE_PS_Checkpoint.respawnPos;
currenthealth=maxHealth;
if (GameObject.FindGameObjectsWithTag("ArtemisPoint").Length <= 0)
GetComponent<GRE_PS_Checkpoint>().EnableDeathFade();
}
}
}