mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
QSBMeteor: format
This commit is contained in:
parent
c127e54079
commit
ea4bc822bd
@ -22,16 +22,17 @@ public class QSBMeteor : WorldObject<MeteorController>
|
||||
}
|
||||
|
||||
public static bool IsSpecialImpact(GameObject go) =>
|
||||
go == Locator.GetPlayerCollider().gameObject || (Locator.GetProbe() != null && go == Locator.GetProbe()._anchor._collider.gameObject);
|
||||
go == Locator.GetPlayerCollider().gameObject ||
|
||||
Locator.GetProbe() != null && go == Locator.GetProbe()._anchor._collider.gameObject;
|
||||
|
||||
public void SpecialImpact()
|
||||
{
|
||||
AttachedObject._intactRenderer.enabled = false;
|
||||
AttachedObject._impactLight.enabled = true;
|
||||
AttachedObject._impactLight.intensity = AttachedObject._impactLightCurve.Evaluate(0f);
|
||||
foreach (var particleSystem in AttachedObject._impactParticles)
|
||||
foreach (var impactParticle in AttachedObject._impactParticles)
|
||||
{
|
||||
particleSystem.Play();
|
||||
impactParticle.Play();
|
||||
}
|
||||
|
||||
AttachedObject._impactSource.PlayOneShot(AudioType.BH_MeteorImpact);
|
||||
|
Loading…
Reference in New Issue
Block a user