public void Respawn()
    {
        spawnPoint.SetPositionFromValue(transform);
        spawnDirection.SetRotationYFromValue(transform);

        dead = false;
        SetActive(true);
        respawnEvent.Invoke();
        StartCoroutine(Invincibility());
    }