init
This commit is contained in:
37
history/ModBehaviour.cs
Normal file
37
history/ModBehaviour.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace test
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础模板
|
||||
/// 继承自Duckov.Modding.ModBehaviour
|
||||
/// </summary>
|
||||
public class ModBehaviour : Duckov.Modding.ModBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 模组初始化时调用,类似于构造函数
|
||||
/// </summary>
|
||||
void Awake()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 模组销毁时调用,用于清理资源
|
||||
/// </summary>
|
||||
void OnDestroy()
|
||||
{
|
||||
}
|
||||
void OnEnable()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 模组禁用时调用,取消事件监听器
|
||||
/// 取消订阅事件,防止在模组禁用后仍然响应事件
|
||||
/// </summary>
|
||||
void OnDisable()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user