Skip to content

Instantly share code, notes, and snippets.

@maco1028
Created July 11, 2017 05:05
Show Gist options
  • Save maco1028/362269993c6be090ea3b76bb2cc0213c to your computer and use it in GitHub Desktop.
Save maco1028/362269993c6be090ea3b76bb2cc0213c to your computer and use it in GitHub Desktop.
アニメーション再生(レガシー)
// Use this for initialization
void Start ()
{
Animation anim = gameObject.GetComponent<Animation> ();
PlayAnimation (anim);
}
void PlayAnimation (Animation anim)
{
anim.Play ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment