예제 #1
0
    public void Damge(GameObject game)
    {
        ParticleController controller = game.GetComponent <ParticleController>();

        controller.Boom(transform.position);
        Debug.Log("ssssssssssss");
        CreateBlodValue(10);
        slider.value -= 30;
        if (slider.value == 0)
        {
            anim.SetInteger("blod", 0);
            speed = 0;
            StartCoroutine(Died());
        }
    }