public void Complete() { foreach (GameObject pannel in teamPannels) { Team team = Match.MakeTeam(); team.color = pannel.GetComponent <Image>().color; team.color.a = 1; foreach (Transform js in pannel.transform) { JavascriptPannel jsPannel = js.gameObject.GetComponent <JavascriptPannel>(); team.AddJSInfo(jsPannel.jsInfo); if (jsPannel.jsInfo.isMine && !Match.myTeam.Contains(team)) { Match.myTeam.Add(team); } } } Match.CompleteMakeTeams(); if (NetworkValues.isServer) { Client.instance.Send(NetworkDecorator.AttachHeader(NetworkHeader.START)); } ScreenFader.MoveSceneGlobal("Playground"); }