C# 클래스 Com.Aurora.AuWeather.Effects.RainParticleSystem

상속: ParticleSystem
파일 보기 프로젝트 열기: aurora-lzzp/Aurora-Weather 1 사용 예제들

공개 메소드들

메소드 설명
AddRainDrop ( Vector2 size ) : void

获得画布尺寸,在画布顶部生成粒子

LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task
Update ( float elapsedTime, Vector2 size ) : void

更新粒子物理属性,如果粒子超过边界,将其回收

보호된 메소드들

메소드 설명
InitializeConstants ( RainLevel rainLevel ) : void

根据雨的规模设置初始化参数(已弃用,使用 ChangeConstants(RainLevel))

InitializeParticle ( Particle particle, Vector2 where ) : void

비공개 메소드들

메소드 설명
ChangeConstants ( RainLevel rainLevel ) : void
InitializeLight ( ) : void
InitializeShower ( ) : void
Initializeextreme ( ) : void
Initializeheavy ( ) : void
InitializelSnow ( ) : void
Initializemoderate ( ) : void
InitializesSnow ( ) : void
PickDirection ( float angle ) : Vector2

根据旋转角度确定下落角度

메소드 상세

AddRainDrop() 공개 메소드

获得画布尺寸,在画布顶部生成粒子
public AddRainDrop ( Vector2 size ) : void
size Vector2
리턴 void

InitializeConstants() 보호된 메소드

根据雨的规模设置初始化参数(已弃用,使用 ChangeConstants(RainLevel))
protected InitializeConstants ( RainLevel rainLevel ) : void
rainLevel RainLevel
리턴 void

InitializeParticle() 보호된 메소드

protected InitializeParticle ( Particle particle, Vector2 where ) : void
particle Particle
where Vector2
리턴 void

LoadSurfaceAsync() 공개 메소드

public LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task
resourceCreator ICanvasResourceCreator
리턴 System.Threading.Tasks.Task

Update() 공개 메소드

更新粒子物理属性,如果粒子超过边界,将其回收
public Update ( float elapsedTime, Vector2 size ) : void
elapsedTime float
size Vector2
리턴 void