This commit is contained in:
CortexCore
2025-04-14 15:39:24 +08:00
parent 5fceb6f885
commit 3f9d9f19ce
50 changed files with 683 additions and 41 deletions

View File

@@ -14,6 +14,7 @@ namespace Net.Project.B.Interaction
Hold,
Performed,
System,
Cancel,
}
/// <summary>
/// 可互动类型
@@ -22,6 +23,7 @@ namespace Net.Project.B.Interaction
{
public IWorldInteractionType InteractionType { get; }
public object WorldObject { get; set; }
public int Id { get; set; }
}
/// <summary>
/// 世界互动服务

View File

@@ -10,18 +10,9 @@ namespace Net.Project.B.Interaction
[Serializable]
public class WorldInteractable : IWorldInteractable,IWorldNode
{
public GameObject gameObject;
public IWorldInteractable Root => this;
public IWorldInteractionType InteractionType => null;
public object WorldObject
{
get => gameObject;
set
{
if (value is GameObject go) gameObject = go;
}
}
public object WorldObject { get; set; }
public int Id { get; set; }
}
}
#endif