示例#1
0
    public void BeingChoped(VisualJack chopper)
    {
        int dirx = Clamp_101(x - chopper.x);
        int diry = Clamp_101(y - chopper.y);

        StartCoroutine(BeingChoped2(dirx, diry));
    }
示例#2
0
 public void ChopTree(VisualJack chopper, int x, int y)
 {
     if (!ValidIndex(x, y))
     {
         throw new UnityException("wtf ? x,y= " + x + "," + y);
     }
     if (trees[x, y] == null)
     {
         throw new UnityException("wtf no treed? x,y= " + x + "," + y);
     }
     trees[x, y].BeingChoped(chopper);
     trees[x, y] = null;
 }
示例#3
0
 public void BeingChop(VisualJack visualJack)
 {
     Debug.LogError("NotImplementedException");
 }
示例#4
0
 public void Chop(VisualJack visualJack)
 {
     Chop(visualJack.x, visualJack.y);
 }