示例#1
0
    //玩家直杠
    public void addZhiGang(int pos, Action act, int fangGangPos)
    {
        string sendPos = "";

        if (positon == pos)
        {
            myAcionList.Add(act);
            sendPos = "bot";
        }
        else
        {
            switch (TryGetLocPos(positon, pos))
            {
            case "right":
                rightAcionList.Add(act);
                sendPos = "right";
                break;

            case "top":
                topAcionList.Add(act);
                sendPos = "top";
                break;

            case "left":
                leftAcionList.Add(act);
                sendPos = "left";
                break;
            }
        }
        RoomEvent.DoZhiGang(sendPos, act.getValue(), fangGangPos);
    }