Skip to content

Instantly share code, notes, and snippets.

@SnugglePilot
Created January 13, 2020 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SnugglePilot/5ab43789fa2b82c6e5da02983c119ec2 to your computer and use it in GitHub Desktop.
Save SnugglePilot/5ab43789fa2b82c6e5da02983c119ec2 to your computer and use it in GitHub Desktop.
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