private void ApplyGameResult() { for (int i = 0; i < RoomManager.Instance.RU.Length; i++) { if (RoomManager.Instance.RU[i].seq == MyInfoManager.Instance.Seq) { MyInfoManager.Instance.Xp = RoomManager.Instance.RU[i].nextXp; } else { BrickManDesc desc = BrickManManager.Instance.GetDesc(RoomManager.Instance.RU[i].seq); if (desc != null) { desc.Xp = RoomManager.Instance.RU[i].nextXp; NameCard friend = MyInfoManager.Instance.GetFriend(desc.Seq); if (friend != null) { friend.Lv = XpManager.Instance.GetLevel(desc.Xp); } NameCard user = ChannelUserManager.Instance.GetUser(desc.Seq); if (user != null) { user.Lv = XpManager.Instance.GetLevel(desc.Xp); } } } } }
public void ResetMyPlayerStyle() { BrickManManager.Instance.Remove(MyInfoManager.Instance.Seq); myDesc = null; myDesc = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), MyInfoManager.Instance.Status, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); BrickManManager.Instance.AddBrickMan(myDesc); }
private void CreateAwardees() { BrickManManager.Instance.ClearBrickManEtc(); Brick.SPAWNER_TYPE sPAWNER_TYPE = Brick.SPAWNER_TYPE.RED_TEAM_SPAWNER; Brick.SPAWNER_TYPE sPAWNER_TYPE2 = Brick.SPAWNER_TYPE.BLUE_TEAM_SPAWNER; int num = 0; for (int i = 0; i < RoomManager.Instance.RU.Length; i++) { BrickManDesc brickManDesc = BrickManManager.Instance.GetDesc(RoomManager.Instance.RU[i].seq); if (brickManDesc == null && RoomManager.Instance.RU[i].seq == MyInfoManager.Instance.Seq) { brickManDesc = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), 0, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); } if (brickManDesc != null) { GameObject gameObject = BrickManManager.Instance.AddBrickMan(brickManDesc); if (null != gameObject) { SpawnerDesc awardSpawner4TeamMatch = BrickManager.Instance.GetAwardSpawner4TeamMatch((num >= 8) ? sPAWNER_TYPE2 : sPAWNER_TYPE, num++); if (awardSpawner4TeamMatch != null) { gameObject.transform.position = new Vector3(awardSpawner4TeamMatch.position.x, awardSpawner4TeamMatch.position.y - 0.5f, awardSpawner4TeamMatch.position.z); gameObject.transform.rotation = Rot.ToQuaternion(awardSpawner4TeamMatch.rotation); } } } } }
private void Update() { if (forceDead) { Elapsedtime += Time.deltaTime; if (Elapsedtime > 1f) { Object.DestroyImmediate(base.gameObject); return; } } if (hitParent != null) { if (isHuman) { BrickManDesc desc = BrickManManager.Instance.GetDesc(parentSeq); if (desc != null && desc.Hp <= 0) { forceDead = true; } } else { MonDesc desc2 = MonManager.Instance.GetDesc(parentSeq); if (desc2 != null && desc2.Xp <= 0) { forceDead = true; } } base.gameObject.transform.parent = hitParent; } }
private Color GetColor(int sequence) { if (RoomManager.Instance.IsVsTeamScene) { int num = -1; if (sequence == MyInfoManager.Instance.Seq) { num = MyInfoManager.Instance.Slot; } else { BrickManDesc desc = BrickManManager.Instance.GetDesc(sequence); if (desc != null) { num = desc.Slot; } } if (num < 0) { return(Color.white); } if (num < 8) { return(clrKiller); } return(clrDead); } return(Color.white); }
public int Compare(BrickManDesc desc) { if (score == desc.score) { return(kill.CompareTo(desc.kill)); } return(-score.CompareTo(desc.score)); }
public void Start() { myDesc = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), MyInfoManager.Instance.Status, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); GameObject x = BrickManManager.Instance.Get(MyInfoManager.Instance.Seq); if (x == null) { BrickManManager.Instance.AddBrickMan(myDesc); } }
public void Start() { myDesc = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), MyInfoManager.Instance.Status, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); GameObject x = BrickManManager.Instance.Get(MyInfoManager.Instance.Seq); if (x == null) { BrickManManager.Instance.AddBrickMan(myDesc); } txtMainColor = GlobalVars.Instance.GetByteColor2FloatColor(244, 151, 25); }
private void VerifyBrickManDesc() { if (desc == null) { PlayerProperty[] allComponents = Recursively.GetAllComponents <PlayerProperty>(base.transform, includeInactive: true); if (allComponents.Length > 0) { desc = allComponents[0].Desc; } } }
private float GridOut(ResultUnit ru, float y) { ResultUnitEx resultUnitEx = ru as ResultUnitEx; if (resultUnitEx == null) { return(y); } int rank = -1; int mark = -1; BrickManDesc desc = BrickManManager.Instance.GetDesc(ru.seq); if (desc != null) { mark = desc.ClanMark; rank = desc.Rank; } else if (ru.seq == MyInfoManager.Instance.Seq) { mark = MyInfoManager.Instance.ClanMark; rank = MyInfoManager.Instance.Rank; } if (MyInfoManager.Instance.Seq == ru.seq) { GUI.Box(new Rect(myRowX, y - myRowSize.y / 2f, myRowSize.x, myRowSize.y), string.Empty, "BoxMyInfo"); } DrawClanMark(new Rect(markX - crdClanMarkSize.x / 2f, y - crdClanMarkSize.y / 2f, crdClanMarkSize.x, crdClanMarkSize.y), mark); int level = XpManager.Instance.GetLevel(ru.nextXp); Texture2D badge = XpManager.Instance.GetBadge(level, rank); if (null != badge) { TextureUtil.DrawTexture(new Rect(badgeX - crdBadgeSize.x / 2f, y - crdBadgeSize.y / 2f - 1f, crdBadgeSize.x, crdBadgeSize.y), badge); } LabelUtil.TextOut(new Vector2(nickX, y), ru.nickname, "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); LabelUtil.TextOut(new Vector2(scoreX, y), ru.score.ToString(), "Label", new Color(0.83f, 0.49f, 0.29f), GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); LabelUtil.TextOut(new Vector2(killX, y), resultUnitEx.param.ToString(), "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); LabelUtil.TextOut(new Vector2(deathX, y), ru.death.ToString(), "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); LabelUtil.TextOut(new Vector2(xpX, y), ru.xp.ToString(), "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); LabelUtil.TextOut(new Vector2(pointX, y), ru.point.ToString(), "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); Vector2 vector = new Vector2(buffX, y); BuffDesc[] array = BuffManager.Instance.ToWhyArray(ru.buff); for (int i = 0; i < array.Length; i++) { GUI.Button(new Rect(vector.x, vector.y - crdBuffSize.y / 2f, crdBuffSize.x, crdBuffSize.y), new GUIContent(array[i].icon, StringMgr.Instance.Get(array[i].tooltip)), "InvisibleButton"); vector.x += crdBuffSize.x + 2f; } if (dicLeveler.ContainsKey(ru.seq)) { TextureUtil.DrawTexture(new Rect(vector.x, vector.y - crdLevelupSize.y / 2f, crdLevelupSize.x, crdLevelupSize.y), levelUpIcon, ScaleMode.StretchToFill); } return(y + offset); }
private void VerifyDesc() { if (desc == null) { PlayerProperty component = GetComponent <PlayerProperty>(); if (null != component) { desc = component.Desc; } } }
public int EscapeCompare(BrickManDesc desc) { if (kill == desc.kill) { if (score == desc.score) { return(-Seq.CompareTo(desc.Seq)); } return(-score.CompareTo(desc.score)); } return(-kill.CompareTo(desc.kill)); }
private int SortList(BrickManDesc p1, BrickManDesc p2) { if (p1.Score < p2.Score) { return(1); } if (p1.Score > p2.Score) { return(-1); } return(0); }
public void OnEnter(int seq, string nickname, string[] equip, int status, int xp, int clan, string clanName, int clanMark, int rank, string[] wpnChg, string[] drpItm) { if (!dicDescriptor.ContainsKey(seq)) { BrickManDesc brickManDesc = new BrickManDesc(seq, nickname, equip, status, xp, clan, clanName, clanMark, rank, wpnChg, drpItm); dicDescriptor.Add(seq, brickManDesc); if (NeedGameObjectOnEnter()) { AddBrickMan(brickManDesc); } } }
private void HandleReceiveSlotData(MsgBody msg) { msg.Read(out int count); for (int i = 0; i < count; i++) { msg.Read(out int slot); msg.Read(out int seq); msg.Read(out string name); msg.Read(out string ip); msg.Read(out int port); msg.Read(out string remoteIp); msg.Read(out int remotePort); msg.Read(out int equipCount); string[] equipment = new string[equipCount]; for (int j = 0; j < equipCount; j++) { msg.Read(out equipment[j]); } msg.Read(out int status); msg.Read(out int xp); msg.Read(out int clanSeq); msg.Read(out string clanName); msg.Read(out int clanMark); msg.Read(out int rank); msg.Read(out byte playerflag); msg.Read(out equipCount); string[] wpnChg = (equipCount > 0) ? new string[equipCount] : null; for (int j = 0; j < equipCount; j++) { msg.Read(out wpnChg[j]); } msg.Read(out equipCount); string[] drpItem = (equipCount > 0) ? new string[equipCount] : null; for (int k = 0; k < equipCount; k++) { msg.Read(out drpItem[k]); } if (seq != MyInfoManager.Instance.Seq) { P2PManager.Instance.Add(seq, ip, port, remoteIp, remotePort, playerflag); BrickManManager.Instance.OnEnter(seq, name, equipment, status, xp, clanSeq, clanName, clanMark, rank, equipment, equipment); BrickManDesc desc = BrickManManager.Instance.GetDesc(seq); desc.Slot = (sbyte)slot; } else { MyInfoManager.Instance.Slot = (sbyte)slot; } } }
private void OnGUI() { if (MyInfoManager.Instance.isGuiOn) { GUI.skin = GUISkinFinder.Instance.GetGUISkin(); GUI.depth = (int)guiDepth; GUI.enabled = !DialogManager.Instance.IsModal; offset.BeginGroup(); myRanking.Draw(); myCount.SetTextFormat(MyInfoManager.Instance.Kill); myCount.Draw(); int num = BrickManManager.Instance.GetDescCount() + 1; if (num > 3) { num = 3; } for (int i = 0; i < num; i++) { rankEffect[i].Draw(); rankBackground[i].Draw(); BrickManDesc desc = BrickManManager.Instance.GetDesc(rankNext[i]); if (desc != null) { Vector2 showPosition = clanMark[i].showPosition; float x = showPosition.x; Vector2 showPosition2 = clanMark[i].showPosition; DrawClanMark(new Rect(x, showPosition2.y, clanMark[i].area.x, clanMark[i].area.y), desc.ClanMark); nickName[i].SetText(desc.Nickname); nickName[i].Draw(); countLabel[i].SetTextFormat(desc.Kill); ref Vector2 position = ref countLabel[i].position; float x2 = nickName[i].position.x; Vector2 vector = nickName[i].CalcLength(); position.x = x2 + vector.x + 5f; countLabel[i].Draw(); } else if (rankNext[i] == MyInfoManager.Instance.Seq) { Vector2 showPosition3 = clanMark[i].showPosition; float x3 = showPosition3.x; Vector2 showPosition4 = clanMark[i].showPosition; DrawClanMark(new Rect(x3, showPosition4.y, clanMark[i].area.x, clanMark[i].area.y), MyInfoManager.Instance.ClanMark); nickName[i].SetText(MyInfoManager.Instance.Nickname); nickName[i].Draw(); countLabel[i].SetTextFormat(MyInfoManager.Instance.Kill); ref Vector2 position2 = ref countLabel[i].position; float x4 = nickName[i].position.x; Vector2 vector2 = nickName[i].CalcLength(); position2.x = x4 + vector2.x + 5f; countLabel[i].Draw(); }
public void AddHuman(int human) { if (RoomManager.Instance.CurrentRoomType == Room.ROOM_TYPE.ZOMBIE && BuildOption.Instance.Props.zombieMode) { int num = humans.IndexOf(human); if (num < 0) { BrickManDesc desc = BrickManManager.Instance.GetDesc(human); if (human == MyInfoManager.Instance.Seq || desc != null) { humans.Add(human); } } } }
public void AddWanted(int wanted) { if ((RoomManager.Instance.CurrentRoomType == Room.ROOM_TYPE.TEAM_MATCH || RoomManager.Instance.CurrentRoomType == Room.ROOM_TYPE.INDIVIDUAL) && BuildOption.Instance.Props.UseWanted && RoomManager.Instance.Wanted) { int num = list.IndexOf(wanted); if (num < 0) { BrickManDesc desc = BrickManManager.Instance.GetDesc(wanted); if (wanted == MyInfoManager.Instance.Seq || desc != null) { list.Add(wanted); } } } }
public void AddZombie(int zombie) { DelHuman(zombie); if (RoomManager.Instance.CurrentRoomType == Room.ROOM_TYPE.ZOMBIE && BuildOption.Instance.Props.zombieMode) { int num = zombies.IndexOf(zombie); if (num < 0) { BrickManDesc desc = BrickManManager.Instance.GetDesc(zombie); if (zombie == MyInfoManager.Instance.Seq || desc != null) { zombies.Add(zombie); } } } }
public void ClearAllInvisibility() { foreach (KeyValuePair <int, BrickManDesc> item in dicDescriptor) { BrickManDesc value = item.Value; GameObject gameObject = Instance.Get(item.Key); if (gameObject != null && value != null) { TPController component = gameObject.GetComponent <TPController>(); if (null != component && !component.IsLocallyControlled) { value.IsInvisibilityOn = false; } } } }
public void Die(int seq) { DelHuman(seq); DelZombie(seq); if (RoomManager.Instance.CurrentRoomType == Room.ROOM_TYPE.ZOMBIE && BuildOption.Instance.Props.zombieMode) { int num = dead.IndexOf(seq); if (num < 0) { BrickManDesc desc = BrickManManager.Instance.GetDesc(seq); if (seq == MyInfoManager.Instance.Seq || desc != null) { dead.Add(seq); } } } }
public void OnSelectWanted(int wanted) { if (wanted == MyInfoManager.Instance.Seq) { SystemMsgManager.Instance.ShowMessage(StringMgr.Instance.Get("YOU_ARE_WANTED")); Action(); localController.WantedOn(); } else { BrickManDesc desc = BrickManManager.Instance.GetDesc(wanted); if (desc != null) { SystemMsgManager.Instance.ShowMessage(string.Format(StringMgr.Instance.Get("WANTED_IS"), desc.Nickname)); } } }
private void Update() { enemy = null; if (!(null == cam)) { int layerMask = (1 << LayerMask.NameToLayer("BoxMan")) | (1 << LayerMask.NameToLayer("Chunk")) | (1 << LayerMask.NameToLayer("Bomb")) | (1 << LayerMask.NameToLayer("InstalledBomb")); Ray ray = cam.ScreenPointToRay(new Vector3((float)(Screen.width / 2), (float)(Screen.height / 2), 0f)); if (Physics.Raycast(ray, out RaycastHit hitInfo, float.PositiveInfinity, layerMask) && hitInfo.transform.gameObject.layer == LayerMask.NameToLayer("BoxMan")) { PlayerProperty[] allComponents = Recursively.GetAllComponents <PlayerProperty>(hitInfo.transform, includeInactive: false); if (allComponents.Length == 1 && allComponents[0].Desc.IsHostile()) { enemy = allComponents[0].Desc; } } } }
private bool IsRedTeam(int seq) { int num = -1; if (BrickManManager.Instance.haveFlagSeq == MyInfoManager.Instance.Seq) { num = MyInfoManager.Instance.Slot; } else { BrickManDesc desc = BrickManManager.Instance.GetDesc(BrickManManager.Instance.haveFlagSeq); if (desc == null) { return(false); } num = desc.Slot; } return(num < 8); }
private void OnPicked(int seq) { statusDelta = 0f; if (MyInfoManager.Instance.Seq == RoomManager.Instance.Master) { localController.checkResetFlag = false; } if (seq == MyInfoManager.Instance.Seq) { if (localController != null) { localController.IDidSomething(); } GetComponent <AudioSource>().PlayOneShot(sndFlagGet); PlaySoundDelay("Flag_allyget_4", 1.2f); statusMessage = string.Format(StringMgr.Instance.Get("PLAYER_GET_FLAG"), MyInfoManager.Instance.Nickname); } else { GameObject gameObject = BrickManManager.Instance.Get(seq); if (gameObject != null) { Transform[] componentsInChildren = gameObject.GetComponentsInChildren <Transform>(); for (int i = 0; i < componentsInChildren.Length; i++) { if (componentsInChildren[i].name.Contains("Bip01 Neck")) { UnityEngine.Object.Instantiate((UnityEngine.Object)effGetFlag, componentsInChildren[i].position, Quaternion.Euler(0f, 0f, 0f)); } } if (IsOurTeam(seq)) { PlaySoundDelay("Flag_allyget_4", 1.2f); } else { PlaySoundDelay("Flag_enemyget_4", 1.2f); } BrickManDesc desc = BrickManManager.Instance.GetDesc(seq); statusMessage = string.Format(StringMgr.Instance.Get("PLAYER_GET_FLAG"), desc.Nickname); } } }
private bool IsOurTeam(int seq) { if (seq == MyInfoManager.Instance.Seq) { return(true); } bool flag = MyInfoManager.Instance.Slot < 8; BrickManDesc desc = BrickManManager.Instance.GetDesc(seq); if (desc == null) { return(false); } bool flag2 = desc.Slot < 8; if (flag == flag2) { return(true); } return(false); }
private void DrawWantedList() { int[] array = WantedManager.Instance.ToArray(); if (array.Length > 0) { if (isTeamMatch) { GUI.Box(crdTMWantedList, string.Empty, "BoxMapE"); } else { GUI.Box(crdIMWantedList, string.Empty, "BoxMapE"); } GUI.Box(crdWantedTitle, string.Empty, "BoxMyInfo"); LabelUtil.TextOut(crdWantedText, StringMgr.Instance.Get("WANTED_TEXT"), "BigLabel", orange, GlobalVars.txtEmptyColor, TextAnchor.MiddleCenter); crdWantedXY = crdWanted; int num = 0; int num2 = (!isTeamMatch) ? 1 : 2; int num3 = 0; while (num < num2 && num3 < array.Length) { if (array[num3] == MyInfoManager.Instance.Seq) { num++; DrawWanted(MyInfoManager.Instance.Nickname, (!isTeamMatch) ? white : ((MyInfoManager.Instance.Slot >= 8) ? blue : red)); } else { BrickManDesc desc = BrickManManager.Instance.GetDesc(array[num3]); if (desc != null) { num++; DrawWanted(desc.Nickname, (!isTeamMatch) ? white : ((desc.Slot >= 8) ? blue : red)); } } num3++; } } }
public override void StartItem() { BlackHole component = GameObject.Find("Main").GetComponent <BlackHole>(); if (component != null) { component.On(); } if (MyInfoManager.Instance.Seq != useUserSeq) { GameObject gameObject = GameObject.Find("Me"); if (null != gameObject) { LocalController component2 = gameObject.GetComponent <LocalController>(); if (null != component2) { if (!component2.IsDead && !component2.bungeeRespawn && !component2.ActivateBlackhole) { component2.sparcleFXOn(); } GameObject gameObject2 = GameObject.Find("Me"); if (gameObject2 != null) { BlackholeScreenFX component3 = gameObject2.GetComponent <BlackholeScreenFX>(); if (component3 != null) { component3.Reset(useUserSeq); } } } } BrickManDesc desc = BrickManManager.Instance.GetDesc(useUserSeq); if (desc != null) { SystemMsgManager.Instance.ShowMessage(string.Format(StringMgr.Instance.Get("BUNGEE_ITEM_MESSAGE_06"), desc.Nickname)); } } }
private void hP2PManagerHandshake() { if (MyInfoManager.Instance.Status == 3 || MyInfoManager.Instance.Status == 4) { bool flag = false; P2PManager.Instance.handshakeTime += Time.deltaTime; if (P2PManager.Instance.handshakeTime > 0.1f) { P2PManager.Instance.handshakeTime = 0f; flag = true; } foreach (KeyValuePair <int, Peer> peer in P2PManager.Instance.dic) { BrickManDesc desc = BrickManManager.Instance.GetDesc(peer.Value.Seq); if (desc != null && peer.Value.P2pStatus == Peer.P2P_STATUS.NONE && (desc.Status == 3 || desc.Status == 4)) { if (flag) { P2PManager.Instance.SendPEER_PRIVATE_HAND(peer.Value.LocalIp, peer.Value.LocalPort); if (P2PManager.Instance.OutputDebug) { Debug.Log("SendPEER_PRIVATE_HAND to " + peer.Value.Seq.ToString()); Debug.Log("addr: " + peer.Value.LocalIp); Debug.Log("port: " + peer.Value.LocalPort.ToString()); } P2PManager.Instance.SendPEER_PUBLIC_HAND(peer.Value.RemoteIp, peer.Value.RemotePort); if (P2PManager.Instance.OutputDebug) { Debug.Log("SendPEER_PUBLIC_HAND to " + peer.Value.Seq.ToString()); Debug.Log("addr: " + peer.Value.RemoteIp); Debug.Log("port: " + peer.Value.RemotePort.ToString()); } } peer.Value.Update(); } } } }
private void CreateAwardees() { BrickManManager.Instance.ClearBrickManEtc(); Brick.SPAWNER_TYPE spawnerType = Brick.SPAWNER_TYPE.BLUE_TEAM_SPAWNER; Brick.SPAWNER_TYPE spawnerType2 = Brick.SPAWNER_TYPE.RED_TEAM_SPAWNER; if (cvtEndCode == 1) { spawnerType = Brick.SPAWNER_TYPE.RED_TEAM_SPAWNER; spawnerType2 = Brick.SPAWNER_TYPE.BLUE_TEAM_SPAWNER; } int num = 0; for (int i = 0; i < RoomManager.Instance.RU.Length; i++) { if (!RoomManager.Instance.RU[i].red) { BrickManDesc brickManDesc = BrickManManager.Instance.GetDesc(RoomManager.Instance.RU[i].seq); if (brickManDesc == null && RoomManager.Instance.RU[i].seq == MyInfoManager.Instance.Seq) { brickManDesc = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), 0, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); } if (brickManDesc != null) { GameObject gameObject = BrickManManager.Instance.AddBrickMan(brickManDesc); if (null != gameObject) { SpawnerDesc awardSpawner4TeamMatch = BrickManager.Instance.GetAwardSpawner4TeamMatch(spawnerType, num++); if (awardSpawner4TeamMatch != null) { gameObject.transform.position = new Vector3(awardSpawner4TeamMatch.position.x, awardSpawner4TeamMatch.position.y - 0.5f, awardSpawner4TeamMatch.position.z); gameObject.transform.rotation = Rot.ToQuaternion(awardSpawner4TeamMatch.rotation); } } } } } num = 0; for (int j = 0; j < RoomManager.Instance.RU.Length; j++) { if (RoomManager.Instance.RU[j].red) { BrickManDesc brickManDesc2 = BrickManManager.Instance.GetDesc(RoomManager.Instance.RU[j].seq); if (brickManDesc2 == null && RoomManager.Instance.RU[j].seq == MyInfoManager.Instance.Seq) { brickManDesc2 = new BrickManDesc(MyInfoManager.Instance.Seq, MyInfoManager.Instance.Nickname, MyInfoManager.Instance.GetUsings(), 0, MyInfoManager.Instance.Xp, MyInfoManager.Instance.ClanSeq, MyInfoManager.Instance.ClanName, MyInfoManager.Instance.ClanMark, MyInfoManager.Instance.Rank, null, null); } if (brickManDesc2 != null) { GameObject gameObject2 = BrickManManager.Instance.AddBrickMan(brickManDesc2); if (null != gameObject2) { SpawnerDesc awardSpawner4TeamMatch2 = BrickManager.Instance.GetAwardSpawner4TeamMatch(spawnerType2, num++); if (awardSpawner4TeamMatch2 != null) { gameObject2.transform.position = new Vector3(awardSpawner4TeamMatch2.position.x, awardSpawner4TeamMatch2.position.y - 0.5f, awardSpawner4TeamMatch2.position.z); gameObject2.transform.rotation = Rot.ToQuaternion(awardSpawner4TeamMatch2.rotation); } } } } } }