Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
SimpleAnimationでアニメーション再生
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayAnimation : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown (KeyCode.A)) {
GetComponent<SimpleAnimation> ().CrossFade ("Default", 0.5f);
}
if (Input.GetKeyDown (KeyCode.S)) {
GetComponent<SimpleAnimation> ().CrossFade ("Running", 0.5f);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment