public void Damage(float _damage) { health -= _damage; stats.UpdateEnemyHpUI(health); DebugMobileManager.Log("Enemy health is: " + health); if (health <= 0) { DebugMobileManager.Log("ENEMY DEFEATED"); Destroy(this.gameObject); UnityEngine.SceneManagement.SceneManager.LoadScene(0); } }