Last active
March 25, 2018 10:46
-
-
Save winkels/9770427 to your computer and use it in GitHub Desktop.
Unity script that allows for particle motion while Time.timeScale = 0. See http://www.asteroidbase.com/?p=569 for context.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class TimeScaleIndependentParticleSystem : TimeScaleIndependentUpdate | |
{ | |
protected override void Update() | |
{ | |
base.Update(); | |
particleSystem.Simulate(deltaTime, true, false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment