更新PVF初始化

This commit is contained in:
lenheart 2025-12-18 12:57:05 +08:00
parent 737ec7a7aa
commit 3ac1fa3ff4
1 changed files with 3 additions and 1 deletions

View File

@ -4,12 +4,13 @@
创建日期:2024-10-11 12:24
文件用途:pvf 管理器
*/
getroottable()._Script_Data_Init_ <- false;
class Script {
C_Object = null;
constructor(Path = "/home/neople/game/Script.pvf") {
if (getroottable().rawin("_Script_Data_")) {
if (getroottable()._Script_Data_Init_) {
return;
}
print("正在初始化PVF...");
@ -20,6 +21,7 @@ class Script {
print("PVF初始化完毕!!!");
print("用时: " + (time() - StartTime) + "秒");
getroottable()._Script_Data_ <- this;
getroottable()._Script_Data_Init_ = true;
}