Class: Rain

Glodon.CIMCube.Animation.WeatherEffect. Rain

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

new Rain(map, opt)

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

Methods


dispose()

释放资源

hide()

隐藏

show()

显示

updateOption(opt)

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