quantum-space-buddies/QSB/MeteorSync/WorldObjects/QSBFragment.cs
2021-11-14 00:57:45 -08:00

25 lines
425 B
C#

using QSB.WorldSync;
namespace QSB.MeteorSync.WorldObjects
{
public class QSBFragment : WorldObject<FragmentIntegrity>
{
public override void Init(FragmentIntegrity attachedObject, int id)
{
ObjectId = id;
AttachedObject = attachedObject;
}
public override void OnRemoval()
{
MeteorManager.Ready = false;
}
public void AddDamage(float damage)
{
AttachedObject.AddDamage(damage);
}
}
}