Esempio n. 1
0
    //玩家暗杠操作
    public void addAnGang(int pos, Action act)
    {
        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.DoAnGang(sendPos, act.getValue());
    }