C# 클래스 AudioHelper, Imagine_fudge-roll

상속: MonoBehaviour
파일 보기 프로젝트 열기: Microsoft/Imagine_fudge-roll 1 사용 예제들

공개 메소드들

메소드 설명
CreateAudioSource ( GameObject obj, AudioClip clip ) : AudioSource

Creates and attaches a new audio source component to the given game object. The audio source will play the audio clip provided.

메소드 상세

CreateAudioSource() 공개 정적인 메소드

Creates and attaches a new audio source component to the given game object. The audio source will play the audio clip provided.
public static CreateAudioSource ( GameObject obj, AudioClip clip ) : AudioSource
obj GameObject The game object the audio source component is attached to.
clip UnityEngine.AudioClip The audio clip for the audio source component.
리턴 UnityEngine.AudioSource