18 lines
405 B
C#
Raw Normal View History

2020-08-20 17:29:47 +01:00
using QSB.WorldSync;
using UnityEngine;
namespace QSB.SectorSync.WorldObjects
{
2020-12-23 22:43:05 +00:00
public class QSBSector : WorldObject<Sector>
2020-12-02 21:23:01 +00:00
{
2020-12-23 22:43:05 +00:00
public Sector.Name Type => AttachedObject.GetName();
public Transform Transform => AttachedObject.transform;
2020-12-02 21:23:01 +00:00
public Vector3 Position => Transform.position;
2020-08-20 19:31:10 +01:00
2020-12-23 22:43:05 +00:00
public override void Init(Sector sector, int id)
2020-12-02 21:23:01 +00:00
{
ObjectId = id;
2020-12-23 22:43:05 +00:00
AttachedObject = sector;
2020-12-02 21:23:01 +00:00
}
}
2020-12-03 08:28:05 +00:00
}