mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
15 lines
370 B
C#
15 lines
370 B
C#
using UnityEngine;
|
|
|
|
namespace QSB.WorldSync
|
|
{
|
|
public abstract class WorldObject<T> : IWorldObject
|
|
where T : MonoBehaviour
|
|
{
|
|
public int ObjectId { get; protected set; }
|
|
public T AttachedObject { get; protected set; }
|
|
public string Name => AttachedObject.name;
|
|
|
|
public abstract void Init(T attachedObject, int id);
|
|
public virtual void OnRemoval() { }
|
|
}
|
|
} |