public void ChopRight() { if (Chop) { GameObject.FindGameObjectWithTag("TreeManager").GetComponent <treeManager> ().ChopRight(); brother1.chop(); leg1.chop(false); } }
public void ChopLeft() { if (Chop) { Debug.Log("LEFT"); GameObject.FindGameObjectWithTag("TreeManager").GetComponent <treeManager> ().ChopLeft(); brother2.chop(); leg2.chop(true); } }