유니티 C# 2d 애니메이션 animation 간단 사용법


유니티 C# 2d 애니메이션 animation 간단 사용법

코드 작성 using UnityEngine; public class AnimationExample : MonoBehaviour { private Animator animator; private void Start() { animator = GetComponent(); } private void Update() { float horizontal = Input.GetAxisRaw("Horizontal"); float vertical = Input.GetAxisRaw("Vertical"); animator.SetFloat("Horizontal", horizontal); animator.SetFloat("Vertical", vertical); animator.SetFloat("Speed", Mathf.Abs(h..


원문링크 : 유니티 C# 2d 애니메이션 animation 간단 사용법