C# 클래스 Cutscene, silverscreen

상속: MonoBehaviour
파일 보기 프로젝트 열기: mminer/silverscreen 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
duration float
inPoint float
outPoint float
player GameObject
stopPlayer bool
subtitlePosition Rect
subtitleStyle GUIStyle

공개 메소드들

메소드 설명
AddTrack ( Cutscene, type ) : CutsceneTrack,

Attaches a new track component to the cutscene.

DisableAudio ( ) : void

Keeps all child audio sources from playing once the game starts.

DisableCameras ( ) : void

Turns off all child cameras so that they don't display before the cutscene starts.

DisableOtherCameras ( Camera exemptCam ) : void

Turns off all child cameras except for the one specified.

NewActor ( AnimationClip anim, GameObject go ) : CutsceneActor

Creates a new CutsceneActor object and attaches it to a new game object as a child of the Shots game object.

NewAudio ( AudioClip clip ) : CutsceneAudio

Creates a new CutsceneAudio object and attaches it to a new game object as a child of the Audio game object.

NewShot ( ) : CutsceneShot

Creates a new CutsceneShot object and attaches it to a new game object as a child of the Shots game object.

NewSubtitle ( string dialog ) : CutsceneSubtitle

Creates a new CutsceneSubtitle object and attaches it to the Subtitles game object.

OnDrawGizmos ( ) : void

Visually shows the cutscene in the scene view.

OnGUI ( ) : void
PauseCutscene ( ) : void

Pauses the cutscene.

PlayActor ( CutsceneClip clip ) : void

Plays the specified actor.

PlayAudio ( CutsceneClip clip ) : void

Plays the specified audio.

PlayCutscene ( ) : void

Starts playing the cutscene.

PlayShot ( CutsceneClip clip ) : void

Shows the specified shot.

PlaySubtitle ( CutsceneClip clip ) : void

Displays the specified subtitle.

SceneFinish ( ) : void

Called when the scene ends.

SceneStart ( ) : void

Called when the scene starts.

SetupMasterAnimationClip ( ) : void

Sets the in and out points of the master animation clip.

SetupTrackAnimationClips ( ) : void

Adds each track's animation clip to the main animation.

Start ( ) : void
StopSubtitle ( ) : void

Stops all subtitles from displaying by setting the current subtitle to null.

UnknownFunction ( CutsceneClip clip ) : void

Called when the clip type is unknown.

For debugging only; ideally this will never be called.

비공개 메소드들

메소드 설명
StopActor ( CutsceneActor actor, float duration ) : IEnumerator

Stops the actor from playing at its out point.

StopAudio ( AudioSource aud, float duration ) : IEnumerator

Stops the audio from playing at its out point.

StopShot ( Camera cam, float duration ) : IEnumerator

Stops the shot from playing at its out point.

StopSubtitle ( float duration ) : IEnumerator

Stops the subtitle from displaying at its out point.

메소드 상세

AddTrack() 공개 메소드

Attaches a new track component to the cutscene.
public AddTrack ( Cutscene, type ) : CutsceneTrack,
type Cutscene,
리턴 CutsceneTrack,

DisableAudio() 공개 메소드

Keeps all child audio sources from playing once the game starts.
public DisableAudio ( ) : void
리턴 void

DisableCameras() 공개 메소드

Turns off all child cameras so that they don't display before the cutscene starts.
public DisableCameras ( ) : void
리턴 void

DisableOtherCameras() 공개 메소드

Turns off all child cameras except for the one specified.
public DisableOtherCameras ( Camera exemptCam ) : void
exemptCam Camera The camera to stay enabled.
리턴 void

NewActor() 공개 메소드

Creates a new CutsceneActor object and attaches it to a new game object as a child of the Shots game object.
public NewActor ( AnimationClip anim, GameObject go ) : CutsceneActor
anim AnimationClip
go GameObject
리턴 CutsceneActor

NewAudio() 공개 메소드

Creates a new CutsceneAudio object and attaches it to a new game object as a child of the Audio game object.
public NewAudio ( AudioClip clip ) : CutsceneAudio
clip AudioClip The audio clip to be attached the CutsceneAudio object.
리턴 CutsceneAudio

NewShot() 공개 메소드

Creates a new CutsceneShot object and attaches it to a new game object as a child of the Shots game object.
public NewShot ( ) : CutsceneShot
리턴 CutsceneShot

NewSubtitle() 공개 메소드

Creates a new CutsceneSubtitle object and attaches it to the Subtitles game object.
public NewSubtitle ( string dialog ) : CutsceneSubtitle
dialog string The dialog to be displayed.
리턴 CutsceneSubtitle

OnDrawGizmos() 공개 메소드

Visually shows the cutscene in the scene view.
public OnDrawGizmos ( ) : void
리턴 void

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void

PauseCutscene() 공개 메소드

Pauses the cutscene.
public PauseCutscene ( ) : void
리턴 void

PlayActor() 공개 메소드

Plays the specified actor.
public PlayActor ( CutsceneClip clip ) : void
clip CutsceneClip
리턴 void

PlayAudio() 공개 메소드

Plays the specified audio.
public PlayAudio ( CutsceneClip clip ) : void
clip CutsceneClip
리턴 void

PlayCutscene() 공개 메소드

Starts playing the cutscene.
public PlayCutscene ( ) : void
리턴 void

PlayShot() 공개 메소드

Shows the specified shot.
public PlayShot ( CutsceneClip clip ) : void
clip CutsceneClip
리턴 void

PlaySubtitle() 공개 메소드

Displays the specified subtitle.
public PlaySubtitle ( CutsceneClip clip ) : void
clip CutsceneClip
리턴 void

SceneFinish() 공개 메소드

Called when the scene ends.
public SceneFinish ( ) : void
리턴 void

SceneStart() 공개 메소드

Called when the scene starts.
public SceneStart ( ) : void
리턴 void

SetupMasterAnimationClip() 공개 메소드

Sets the in and out points of the master animation clip.
public SetupMasterAnimationClip ( ) : void
리턴 void

SetupTrackAnimationClips() 공개 메소드

Adds each track's animation clip to the main animation.
public SetupTrackAnimationClips ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StopSubtitle() 공개 메소드

Stops all subtitles from displaying by setting the current subtitle to null.
public StopSubtitle ( ) : void
리턴 void

UnknownFunction() 공개 메소드

Called when the clip type is unknown.
For debugging only; ideally this will never be called.
public UnknownFunction ( CutsceneClip clip ) : void
clip CutsceneClip
리턴 void

프로퍼티 상세

duration 공개적으로 프로퍼티

public float duration
리턴 float

inPoint 공개적으로 프로퍼티

public float inPoint
리턴 float

outPoint 공개적으로 프로퍼티

public float outPoint
리턴 float

player 공개적으로 프로퍼티

public GameObject player
리턴 GameObject

stopPlayer 공개적으로 프로퍼티

public bool stopPlayer
리턴 bool

subtitlePosition 공개적으로 프로퍼티

public Rect subtitlePosition
리턴 Rect

subtitleStyle 공개적으로 프로퍼티

public GUIStyle subtitleStyle
리턴 GUIStyle