mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
25 lines
425 B
C#
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);
|
|
}
|
|
}
|
|
}
|