public void eat()
 {
     if (gameController.getfoodStock() > 0)
     {
         dwarfcontroller.iseating = true;
         dwarfcontroller.setPoseBeforeeat(dwarfcontroller.transform.position);
         dwarfcontroller.setcurrentjob(dwarfcontroller.getjob());
         Debug.Log("dwarf job : " + dwarfcontroller.getcurrentjob());
         dwarfcontroller.setjobstatut("on Break");
         TargetFood     = getclosestfoodposition();
         TargetFood.tag = "food_being_eat";
         gameController.update_food_record();
         Debug.Log("move to food");
         movescript.setpos(TargetFood.transform.position);
     }
 }