Unity

[Unity][방법] 애니메이션 파라미터 조건으로 사용하기

usingsystem 2022. 10. 6. 10:14
728x90

wait -> run 실행방법

1. 선클릭

2. Greater은 ~보다큰 이기 때문에 value값을 0으로 하면 0보다 크다면 조건이며 0보다 크다면 run이 실행 된다.

run -> wait 실행방법

Less는 ~보다작은 이기 때문에 1보다 작으면 wait이 실행된다.

  void Start()
    {
        Animator _animator = gameObject.GetComponent<Animator>();
        _animator.SetFloat("speed", 1);
    }
728x90