mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 15:57:37 +02:00

committed by
minenice55

parent
232663b930
commit
efa640f293
@ -165,6 +165,13 @@ namespace HeavenStudio.Common
|
||||
}
|
||||
}
|
||||
|
||||
// makes the explosion smaller with less accurate inputs
|
||||
if (it == OK)
|
||||
{
|
||||
float okScalar = 1 - (frac / 2);
|
||||
it.transform.localScale = new Vector3(okScalar, okScalar, it.transform.localScale.z);
|
||||
}
|
||||
|
||||
it.transform.position = barTransform.position + new Vector3(0, barTransform.localScale.y * y, 0);
|
||||
it.GetComponent<ParticleSystem>().Play();
|
||||
}
|
||||
|
Reference in New Issue
Block a user