This commit is contained in:
CortexCore
2025-03-09 13:38:32 +08:00
parent 787ae12bf8
commit 88f1ff1b04
14 changed files with 181 additions and 35 deletions

View File

@@ -11,14 +11,16 @@ namespace Net.Project.B.Interaction
public class WorldInteractable : IWorldInteractable,IWorldNode
{
public GameObject gameObject;
public int Id => gameObject.GetInstanceID();
public IWorldInteractable Root => this;
public IWorldInteractionType InteractionType => null;
public object WorldObject
{
get => gameObject;
set => throw new NotImplementedException("Can do that");
set
{
if (value is GameObject go) gameObject = go;
}
}
}
}