mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 04:23:04 +00:00
draw gizmos sphere indicating explosion damage radius
This commit is contained in:
parent
ba1ebf4213
commit
bc605534e6
1 changed files with 7 additions and 0 deletions
|
@ -224,6 +224,13 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
Object.Destroy(meshFilter.gameObject, VehicleManager.Instance.explosionLeftoverPartsLifetime * Random.Range(0.8f, 1.2f));
|
||||
}
|
||||
|
||||
void OnDrawGizmosSelected()
|
||||
{
|
||||
// draw sphere indicating explosion damage radius
|
||||
Gizmos.color = Color.red;
|
||||
Gizmos.DrawWireSphere(this.transform.position, VehicleManager.Instance.explosionDamageRadius);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue