#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ TestScaler - 自定义脚本 """ from core.script_system import ScriptBase class Testscaler(ScriptBase): """自定义脚本类""" def __init__(self): super().__init__() # 在这里初始化您的变量 def start(self): """脚本开始时调用""" self.log("脚本开始运行!") def update(self, dt): """每帧更新""" # 在这里编写更新逻辑 pass def on_destroy(self): """脚本销毁时调用""" self.log("脚本被销毁")