private void Awake() { instance = this; // HACK: Work around on crashing in some versions // https://issuetracker.unity3d.com/issues/unity-crashes-when-particles-are-awaken-by-script foreach (ParticleSystem p in particles) { p.Emit(1); p.Clear(); } }
private void Awake() { instance = this; }