Skip to content

Commit

Permalink
v2.6.20 Fix the default Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Nov 19, 2016
1 parent 460af13 commit c5423bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ModelMultiParticlePersistFX.cs
Expand Up @@ -44,6 +44,9 @@ public class ModelMultiParticlePersistFX : EffectBehaviour

[Persistent] public string renderMode = "Billboard";

[Persistent] public string layer = "TransparentFX";
private int layerId = 1;

[Persistent] public bool collide = false;

[Persistent] public float collideRatio = 0.0f;
Expand Down Expand Up @@ -579,6 +582,7 @@ public override void OnInitialize()

emitterGameObject.transform.localPosition = localPosition;
emitterGameObject.transform.localRotation = Quaternion.Euler(localRotation);
emitterGameObject.SetLayerRecursive(layerId);
}
}

Expand Down Expand Up @@ -675,6 +679,8 @@ public override void OnLoad(ConfigNode node)

angle.Load("angle", node);
distance.Load("distance", node);
layerId = LayerMask.NameToLayer(layer);

loaded = true;
}

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Expand Up @@ -34,5 +34,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.6.19.0")]
[assembly: AssemblyFileVersion("2.6.19.0")]
[assembly: AssemblyVersion("2.6.20.0")]
[assembly: AssemblyFileVersion("2.6.20.0")]

0 comments on commit c5423bb

Please sign in to comment.