I
I
Ivan Zhuk2022-02-06 19:05:17
C++ / C#
Ivan Zhuk, 2022-02-06 19:05:17

Running Animation in unity script?

When the game starts, the Dying Animation immediately fires, but I would like to start it only after death
, how can I implement it so that the Dying Animation starts only when the Die () function is executed

public void Die(){
   тут запустить анимацию смерти
    }


61fff0be67de3870677322.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uncle Bogdan, 2022-02-08
@motkot

Animator.SetTrigger("Die");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question