void HitRock(GameObject rock)
 {
     int damage = 25;
     ClientSend.Hit("rock", rock.GetComponent<Rock>().id, damage);
     if (rock.GetComponent<Rock>().hp <= damage)
     {
         ClientSend.AddItem("rock", 2);
     }
 }
 void HitAnimal(GameObject animal)
 {
     int damage = 25;
     ClientSend.Hit("animal", animal.GetComponent<AnimalManager>().id, damage);
     if (animal.GetComponent<AnimalManager>().health <= damage)
     {
         ClientSend.AddItem("meat", 2);
     }
 }
 void HitTree(GameObject tree)
 {
     int damage = 25;
     Debug.Log("you hit a tree");
     ClientSend.Hit("tree", tree.GetComponent<Tree>().id, damage);
     if (tree.GetComponent<Tree>().hp <= damage)
     {
         ClientSend.AddItem("wood", 2);
     }
 }