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