Exemplo n.º 1
0
    public void Update()
    {
        healthslider.BarHealth(health.value);
        if (health.value <= 0)
        {
            transform.position = deathSpawn.position;
            transform.rotation = deathSpawn.rotation;
            health.value       = 5;

            controller.enabled = true;
        }
    }