Class: Rain

Glodon.CIMCube.Animation.WeatherEffect. Rain

雨景特效类,用于实现雨天天气特效

new Rain(map, opt)

雨景特效
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 雨景特效参数
Properties
Name Type Argument Default Description
darkness Number <optional>
0.5 阴天,天空暗度,0.1~0.9
density String <optional>
1.0 雨的大小;雨停:none;小雨:small;中雨:normal;大雨:great;

Methods


dispose()

释放资源

hide()

隐藏

show()

显示

update()

更新雨效果。

updateMyOption(opt)

更新参数。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Argument Default Description
darkness Number 暗度。
density String <optional>
1.0 密度。

updateOption(opt)

雨景特效
Parameters:
Name Type Description
opt Object 雨景特效参数
Properties
Name Type Argument Default Description
darkness Number <optional>
0.5 阴天,天空暗度,0.1~0.9
density String <optional>
1.0 雨的大小;雨停:none;小雨:small;中雨:normal;大雨:great;