Net.Project.B/Src/Interaction/WorldInteractable.cs

28 lines
625 B
C#
Raw Normal View History

2025-03-03 18:43:55 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
using UnityEngine;
#if UNITY_5_3_OR_NEWER
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;
2025-03-09 13:38:32 +08:00
set
{
if (value is GameObject go) gameObject = go;
}
2025-03-03 18:43:55 +08:00
}
}
}
#endif