5
(1)

Player가 점프시 소리를 적용해 보겠습니다.

Project 창에서 Assets 폴더 아래에 Audio 폴더를 만들고 점프시 사용할 사운드 파일을 넣습니다.

PlayerMove 스크립트를 열어 AudioClip을 추가해 주고 점프시 재생될 수 있도록 아래와 같이 작성해 줍니다.

Hierarchy 창에서 Player 게임 오브젝트를 클릭하고 점프시 사용할 사운드 파일을 드래그 & 드롭해 줍니다.

게임을 플레이해 확인해 보면 점프시 소리가 재생되는 것을 확인해 보실 수 있습니다.

C# 소스 / 전자책 구매 / home

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

GameInfo
Author: GameInfo

GameInfo


GameInfo

GameInfo

0개의 댓글

답글 남기기

아바타 플레이스홀더