Esempio n. 1
0
    public void InitResultScoreWindow(RoomInfoMgr roomInfo, int score)
    {
        //RoomInfoMgr roomInfo = RoomInfoMgr.m_Instance;
        //int score = 0;
        switch (RoomInfoMgr.m_Instance.m_MySeat)
        {
        case MainSceneMger.PlayerSeat.PlayerEast:
            //
            player_Down.SetPlayerScore(roomInfo.m_PlayerEastName, InitPlayerIcon(roomInfo.m_PlayerEastIconID), score);
            player_Down.SetDetalScore();
            player_Right.SetPlayerScore(roomInfo.m_PlayerSouthName, InitPlayerIcon(roomInfo.m_PlayerSouthIconID), score);
            player_Up.SetPlayerScore(roomInfo.m_PlayerWestName, InitPlayerIcon(roomInfo.m_PlayerWestIconID), score);
            player_Left.SetPlayerScore(roomInfo.m_PlayerNorthName, InitPlayerIcon(roomInfo.m_PlayerNorthIconID), score);

            break;

        case MainSceneMger.PlayerSeat.PlayerSouth:
            //
            player_Down.SetPlayerScore(roomInfo.m_PlayerSouthName, InitPlayerIcon(roomInfo.m_PlayerSouthIconID), score);
            player_Down.SetDetalScore();
            player_Right.SetPlayerScore(roomInfo.m_PlayerWestName, InitPlayerIcon(roomInfo.m_PlayerWestIconID), score);
            player_Up.SetPlayerScore(roomInfo.m_PlayerNorthName, InitPlayerIcon(roomInfo.m_PlayerNorthIconID), score);
            player_Left.SetPlayerScore(roomInfo.m_PlayerEastName, InitPlayerIcon(roomInfo.m_PlayerEastIconID), score);
            break;

        case MainSceneMger.PlayerSeat.PlayerWest:
            //
            player_Down.SetPlayerScore(roomInfo.m_PlayerWestName, InitPlayerIcon(roomInfo.m_PlayerWestIconID), score);
            player_Down.SetDetalScore();
            player_Right.SetPlayerScore(roomInfo.m_PlayerNorthName, InitPlayerIcon(roomInfo.m_PlayerNorthIconID), score);
            player_Up.SetPlayerScore(roomInfo.m_PlayerEastName, InitPlayerIcon(roomInfo.m_PlayerEastIconID), score);
            player_Left.SetPlayerScore(roomInfo.m_PlayerSouthName, InitPlayerIcon(roomInfo.m_PlayerSouthIconID), score);
            break;

        case MainSceneMger.PlayerSeat.PlayerNorth:
            //
            player_Down.SetPlayerScore(roomInfo.m_PlayerNorthName, InitPlayerIcon(roomInfo.m_PlayerNorthIconID), score);
            player_Down.SetDetalScore();
            player_Right.SetPlayerScore(roomInfo.m_PlayerEastName, InitPlayerIcon(roomInfo.m_PlayerEastIconID), score);
            player_Up.SetPlayerScore(roomInfo.m_PlayerSouthName, InitPlayerIcon(roomInfo.m_PlayerSouthIconID), score);
            player_Left.SetPlayerScore(roomInfo.m_PlayerWestName, InitPlayerIcon(roomInfo.m_PlayerWestIconID), score);
            break;
        }
    }
    public int m_PlayerNorthIconID;      //玩家北的头像编号


    private void Awake()
    {
        m_Instance = this;
    }