Final gamerjam state #1
6899
Assets/Scenes/Main - minz.unity
Normal file
6899
Assets/Scenes/Main - minz.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/Main - minz.unity.meta
Normal file
7
Assets/Scenes/Main - minz.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9998199e1f08c8646a2fe7c130f5f696
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -26,7 +26,7 @@ public class BulletFreezeRemove : Pickup
|
||||
GameObject root = particleSystem.transform.root.gameObject;
|
||||
if (!root.GetComponent<Pattern>())
|
||||
{
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
int particleCount = particleSystem.particleCount;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class Extinguisher : Pickup
|
||||
|
||||
for (int i = 0; i < particleCount; i++)
|
||||
{
|
||||
if (particles[i].remainingLifetime < particleSystem.main.startLifetime.constant * 0.5f)
|
||||
if (particles[i].remainingLifetime < particles[i].startLifetime * 0.95f)
|
||||
{
|
||||
particles[i].remainingLifetime = 0.0f;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public class Extinguisher : Pickup
|
||||
|
||||
for (int i = 0; i < count; i+=20)
|
||||
{
|
||||
if (particles[i].remainingLifetime < system.main.startLifetime.constant * 0.5f)
|
||||
if (particles[i].remainingLifetime < particles[i].startLifetime * 0.95f)
|
||||
{
|
||||
//instantiate freeze particles at the position of the particle
|
||||
Instantiate(extinguishEffect, particles[i].position, Quaternion.identity);
|
||||
|
||||
Reference in New Issue
Block a user