void Start() { anim = GetComponent <Animator>(); player = GetComponent <PlayerController>(); player.onGroundedChanged += OnGroundedChanged; }