Skip to content

Commit

Permalink
Cut the debugging spam
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Jun 13, 2015
1 parent bed9af4 commit f4e3589
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ModelMultiParticlePersistFX.cs
Expand Up @@ -210,7 +210,7 @@ public override void OnEvent()
}
singleTimerEnd = singleEmitTimer + Time.fixedTime;
timeModuloDelta = singleTimerEnd % timeModulo;

// Old version Emitted 1 second of particle in one go
// New version set power to 1 for singleEmitTimer seconds
//UpdateEmitters(1);
Expand Down Expand Up @@ -429,7 +429,7 @@ public void Update()
{
return;
}

for (int i = 0; i < persistentEmitters.Count; i++)
{
// using Camera.main will mess up anything multi cam but using current require adding a OnWillRenderObject() to the ksp particle emitter GameObject (? not tested)
Expand Down Expand Up @@ -641,7 +641,7 @@ public override void OnSave(ConfigNode node)
{
if (!loaded)
{
Print("OnSave called before any OnLoad");
//Print("OnSave called before any OnLoad");
return;
}

Expand Down
10 changes: 5 additions & 5 deletions PersistentEmitterManager.cs
Expand Up @@ -28,7 +28,7 @@ private void Awake()

private void OnDestroy()
{
Print("OnDestroy");
//Print("OnDestroy");
GameEvents.onGameSceneLoadRequested.Remove(OnSceneChange);
}

Expand All @@ -50,11 +50,11 @@ public static void Remove(PersistentKSPParticleEmitter pkpe)

private void OnSceneChange(GameScenes scene)
{
Print("OnSceneChange");
//Print("OnSceneChange");
for (int i = 0; i < persistentEmitters.Count; i++)
{
EffectBehaviour.RemoveParticleEmitter(persistentEmitters[i].pe);
Print(" go is " + persistentEmitters[i].go);
//Print(" go is " + persistentEmitters[i].go);

//Destroy(persistentEmitters[i].go);
if (persistentEmitters[i].go != null && persistentEmitters[i].go.transform.parent != null)
Expand All @@ -78,7 +78,7 @@ public void FixedUpdate()
// If the gameObject is null clean up the emitter
if (persistentEmittersCopy[i].go == null)
{
Print("FixedUpdate cleaning null go");
//Print("FixedUpdate cleaning null go");
Remove(persistentEmittersCopy[i]);

// Make sure
Expand All @@ -93,7 +93,7 @@ public void FixedUpdate()

if (persistentEmittersCopy[i].pe.pe.particles.Count() == 0)
{
Print("FixedUpdate cleaning parent go");
//Print("FixedUpdate cleaning parent go");
Remove(persistentEmittersCopy[i]);
Destroy(persistentEmittersCopy[i].go);
}
Expand Down

0 comments on commit f4e3589

Please sign in to comment.