Skip to content

Instantly share code, notes, and snippets.

@kimsama
Created April 4, 2014 05:44
Show Gist options
  • Select an option

  • Save kimsama/9968809 to your computer and use it in GitHub Desktop.

Select an option

Save kimsama/9968809 to your computer and use it in GitHub Desktop.
did not tried yet but it seems to be a solution to resolve animation event offset problem...
animTime = Mathf.Round(Animation[myBody.attack1].normalizedTime * 10)/10;
if (animTime >= 0.5f) {
//do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment