// Use this for initialization void Start() { //한강맵 시작 시 //이전 데이터들을 DB에서 불러와 PlayerDBSection , PlayerRankNum , PlayerRankName 에 저장 /* 사용 안함 * for (int i = 0; i < 6; i++) //플레이어 구간별 최고 기록 / 이전 주행 시간. * { * for (int j = 0; j < 2; j++) * { * PlayerDBSection[i, j] = DBB; //DB에 저장할 것 * PlayerOldSection[i, j] = DBB; //결과 비교하기 위해 이전 자료 저장한 것 * } * } * * for (int i = 0; i < 5; i++) //플레이어 랭킹 분,초 / 1~5위 * { * PlayerRankNum[i, 0] = DBB; //분 * PlayerRankNum[i, 1] = DBB; //초 * } * * for (int i = 0; i < 5; i++) //플레이어 랭킹 이름 / 1~5위 * { * PlayerRankName[i, 0] = DB; * } */ //현 플레이어의 이름을 DB에서 불러와 PlayerName 에 저장 if (world.GetMyUser() != null) { PlayerName[0, 0] = world.GetMyUser().username; } }
// Use this for initialization void Start() { if (world.GetMyUser() != null) { Weight = world.GetMyUser().weight; } else { Weight = 70.0f; } }
public void SetReady(int index, int room_id, int my_index) { if (index == my_index) { GameRoomPacket.PACKET_REQ_PLAYER_READY req = new GameRoomPacket.PACKET_REQ_PLAYER_READY(); req.Init(); req.room_id = (short)room_id; req.room_index = my_index; req.user_uid = world.GetMyUser().userUid; world.NetworkManager.Send(Utility.ToByteArray((object)req)); } }