로딩
티스토리 데이터 처리 중입니다.

유니티 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.....