function Update () {
var controller : CharacterController = GetComponent(CharacterController);
if (!controller.isGrounded)
animation.CrossFade ("Walk");
else
animation.CrossFade ("Jump"); }
and I keep getting the Null Refference Exception error. It’s supposed to make my character play the walk animation when grounded and when not grounded play the jump animation. This script have been giving me a heap of trouble! Thanks for reading!