This commit is contained in:
CortexCore
2025-06-26 23:34:50 +08:00
parent a772331918
commit 1e4643f20f
15 changed files with 318 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit;
using BITKit.WorldNode;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
@@ -9,15 +10,18 @@ using UnityEngine;
namespace Net.Project.B.WorldNode
{
[Serializable]
public struct UnityContainerNode :IWorldNode
public class UnityContainerNode :RuntimeItemContainer,IWorldNode,IRuntimeItemContainer
{
public bool allowAdd;
public bool addRemove=true;
/// <summary>
/// 添加物品
/// </summary>
public bool AllowAdd { get; set; }
public bool AllowAdd => allowAdd;
/// <summary>
/// 移除物品
/// </summary>
public bool AllowRemove { get; set; }
public bool AllowRemove => addRemove;
}
}