C# 클래스 SunsetHigh.ScreenTransition

Handles the fade in and out between different screens or scenes.
파일 보기 프로젝트 열기: ErraticUnicorn/MOSH

공개 메소드들

메소드 설명
draw ( SpriteBatch sb ) : void
isTransitioning ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
requestSimpleTransition ( GameState stateChange ) : void
requestTransition ( System.Action action ) : void

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).

update ( float elapsed ) : void

메소드 상세

draw() 공개 정적인 메소드

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

isTransitioning() 공개 정적인 메소드

public static isTransitioning ( ) : bool
리턴 bool

loadContent() 공개 정적인 메소드

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

requestSimpleTransition() 공개 정적인 메소드

public static requestSimpleTransition ( GameState stateChange ) : void
stateChange GameState
리턴 void

requestTransition() 공개 정적인 메소드

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).
public static requestTransition ( System.Action action ) : void
action System.Action
리턴 void

update() 공개 정적인 메소드

public static update ( float elapsed ) : void
elapsed float
리턴 void