Mecanim homeless animation

This commit is contained in:
Wilson Leong 2014-04-26 22:30:12 -06:00
commit a45b62181a
14 changed files with 417 additions and 108 deletions

View file

@ -35,7 +35,6 @@ public class PlayerController : MonoBehaviour {
{
nextFire = Time.time + delay;
Instantiate(shank, shankSpawn.position, playerAngle.rotation);
//animator.SetInteger("state", 3);
animator.Play("player_shank");
}
@ -54,11 +53,9 @@ public class PlayerController : MonoBehaviour {
if (Mathf.Approximately(moveHorizontal, 0) &&
Mathf.Approximately(moveVertical, 0)) {
//animator.SetInteger("state", 0);
//animator.Play("player_idle");
animator.SetBool("isWalking", false);
} else {
//animator.SetInteger("state", 2);
animator.Play("player_walk");
animator.SetBool("isWalking", true);
}
if (moveHorizontal < 0)