Skip to content

Instantly share code, notes, and snippets.

@xhiroga
Created August 16, 2017 06:39
Show Gist options
  • Save xhiroga/85ddd4ed0d1de6131d87dce6573a83cc to your computer and use it in GitHub Desktop.
Save xhiroga/85ddd4ed0d1de6131d87dce6573a83cc to your computer and use it in GitHub Desktop.
はてなブログでソースコードっぽい記載になるやつ
<pre class="code" data-lang="c#" data-unlink="">
void Update () {
Animator anim = GetComponent<animator> ();
AnimatorStateInfo state = anim.GetCurrentAnimatorStateInfo (0);<br />
if (Input.GetKeyDown (KeyCode.Space)) {
anim.SetTrigger ("Jump");
}<br />}
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment