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