85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/DestroyableBehaviour.html
|
|
Title: People Playground Modding - DestroyableBehaviour
|
|
==================================================
|
|
|
|
public class DestroyableBehaviour
|
|
Inherits MonoBehaviour, Messages.IOnFragmentHit, Messages.IShot, Messages.IBreak
|
|
No description provided
|
|
Fields
|
|
public float OverallChance
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public float ShotBreakChance
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public float MinimumImpactForce
|
|
[Space] [SkipSerialisation]
|
|
No description provided
|
|
|
|
public float MinimumShotDamage
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public float MinimumExplosionFragmentDamage
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public GameObject DebrisPrefab
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public Rigidbody2D VelocityAncestor
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public bool ReactToCollision
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public bool ReactToBullets
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public bool ReactToExplosions
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public float RestoreIncomingVelocityWhenDestroyedRatio
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public float TemperatureLimit
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public bool DestroyWhenBroken
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public bool TransferUndoRegistry
|
|
[SkipSerialisation]
|
|
No description provided
|
|
|
|
public UnityEvent OnBreak
|
|
No description provided
|
|
|
|
Methods
|
|
protected virtual void Awake()
|
|
No description provided
|
|
|
|
protected virtual void Update()
|
|
No description provided
|
|
|
|
public void OnFragmentHit(float force)
|
|
No description provided
|
|
|
|
public void Shot(Shot shot)
|
|
No description provided
|
|
|
|
public void Break(Vector2 velocity = default)
|
|
No description provided
|
|
|
|
protected virtual void OnDebrisCreated(GameObject createdDebris, Vector2 velocity)
|
|
No description provided |