protected override void OnCantMove <T>(T component) { Player_Script hitPlayer = component as Player_Script; hitPlayer.AlterFood(-playerDamage); animator.SetTrigger("enemyAttack"); }