mirror of
https://github.com/Buriburizaem0n/live2d.git
synced 2026-02-04 03:20:02 +00:00
模型可以白夜切换了!
This commit is contained in:
@@ -191,7 +191,7 @@ function loadWidget() {
|
||||
if (modelId === null) {
|
||||
// 首次访问加载 指定模型 的 指定材质
|
||||
const now = new Date();
|
||||
if(now.getHours()>=12 || now.getHours()<7){
|
||||
if(now.getHours()>=22 || now.getHours()<=7){
|
||||
modelId = 1; // 夜间模型ID
|
||||
}else{
|
||||
modelId = 0; // 白天模型ID
|
||||
|
||||
Reference in New Issue
Block a user