Method | Description | |
---|---|---|
AddRainDrop ( Vector2 size ) : void |
获得画布尺寸,在画布顶部生成粒子
|
|
LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task | ||
Update ( float elapsedTime, Vector2 size ) : void |
更新粒子物理属性,如果粒子超过边界,将其回收
|
Method | Description | |
---|---|---|
InitializeConstants ( RainLevel rainLevel ) : void |
根据雨的规模设置初始化参数(已弃用,使用 ChangeConstants(RainLevel))
|
|
InitializeParticle ( |
Method | Description | |
---|---|---|
ChangeConstants ( RainLevel rainLevel ) : void | ||
InitializeLight ( ) : void | ||
InitializeShower ( ) : void | ||
Initializeextreme ( ) : void | ||
Initializeheavy ( ) : void | ||
InitializelSnow ( ) : void | ||
Initializemoderate ( ) : void | ||
InitializesSnow ( ) : void | ||
PickDirection ( float angle ) : Vector2 |
根据旋转角度确定下落角度
|
protected InitializeConstants ( RainLevel rainLevel ) : void | ||
rainLevel | RainLevel | |
return | void |
protected InitializeParticle ( |
||
particle | ||
where | Vector2 | |
return | void |
public LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task | ||
resourceCreator | ICanvasResourceCreator | |
return | System.Threading.Tasks.Task |
public Update ( float elapsedTime, Vector2 size ) : void | ||
elapsedTime | float | |
size | Vector2 | |
return | void |