// Use this for initialization
 void Start()
 {
     groundDetector = GetComponent<WalkableDetector>();
 }
 // Use this for initialization
 void Start()
 {
     anim = GetComponent<Animator>();
     rigidBody2D = GetComponent<Rigidbody2D>();
     groundDetector = GetComponent<WalkableDetector>();
 }