Created
January 13, 2020 21:46
-
-
Save SnugglePilot/5ab43789fa2b82c6e5da02983c119ec2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
namespace absurdjoy | |
{ | |
public class TransformManipulator_DelaySync : MonoBehaviour | |
{ | |
public uint delayFrames; | |
public uint randomJitter; | |
private bool isSet = false; | |
private uint setValue; | |
public uint GetDelayFrames() | |
{ | |
if (!isSet) | |
{ | |
setValue = delayFrames + (uint) Random.Range(0, randomJitter); | |
isSet = true; | |
} | |
return setValue; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment