Skip to content

Instantly share code, notes, and snippets.

@identity2
Created June 8, 2019 12:52
Show Gist options
  • Save identity2/04df9800d8db2fbc82b4a97f67668b18 to your computer and use it in GitHub Desktop.
Save identity2/04df9800d8db2fbc82b4a97f67668b18 to your computer and use it in GitHub Desktop.
//the update function of music notes
void Update()
{
transform.position = Vector2.Lerp(
SpawnPos,
RemovePos,
(BeatsShownInAdvance - (beatOfThisNote - songPosInBeats)) / BeatsShownInAdvance
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment