mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-18 13:58:28 +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));
|
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…
Add table
Reference in a new issue