quantum-space-buddies/QSB/MeteorSync/WorldObjects/QSBFragment.cs

25 lines
425 B
C#
Raw Normal View History

2021-11-14 08:57:45 +00:00
using QSB.WorldSync;
2021-11-14 00:57:06 +00:00
namespace QSB.MeteorSync.WorldObjects
{
public class QSBFragment : WorldObject<FragmentIntegrity>
{
public override void Init(FragmentIntegrity attachedObject, int id)
{
ObjectId = id;
AttachedObject = attachedObject;
}
2021-11-14 04:41:46 +00:00
public override void OnRemoval()
{
MeteorManager.Ready = false;
}
2021-11-14 04:41:46 +00:00
public void AddDamage(float damage)
{
AttachedObject.AddDamage(damage);
}
2021-11-14 00:57:06 +00:00
}
}