1
This commit is contained in:
@@ -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>
|
||||
/// 世界互动服务
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user