コード例 #1
0
ファイル: vp_DMTeamManager.cs プロジェクト: ATVLx/GOLF_V3
	/// <summary>
	/// 
	/// </summary>
	protected override void Start()
	{

		// convert all the teams to deathmatch teams

		base.Start();

		// convert the vp_MPTeams from the inspector list into vp_DMTeams
		List<vp_DMTeam> dmTeams = new List<vp_DMTeam>();
		for (int v = Teams.Count - 1; v > -1; v--)
		{
			vp_DMTeam dmt = new vp_DMTeam(Teams[v].Name, Teams[v].Color, Teams[v].PlayerType);
			dmTeams.Add(dmt);
		}

		// clear team list
		Teams.Clear();

		// add the new DM teams to the team list
		for (int v = dmTeams.Count - 1; v > -1; v--)
		{
			Teams.Add(dmTeams[v]);
		}

	}
コード例 #2
0
	/// <summary>
	/// 
	/// </summary>
	protected override void Start()
	{

		// convert all the teams to deathmatch teams

		base.Start();

		// convert the vp_MPTeams from the inspector list into vp_DMTeams
		List<vp_DMTeam> dmTeams = new List<vp_DMTeam>();
		for (int v = Teams.Count - 1; v > -1; v--)
		{
			vp_DMTeam dmt = new vp_DMTeam(Teams[v].Name, Teams[v].Color, Teams[v].PlayerType);
			dmTeams.Add(dmt);
		}

		// clear team list
		Teams.Clear();

		// add the new DM teams to the team list
		for (int v = dmTeams.Count - 1; v > -1; v--)
		{
			Teams.Add(dmTeams[v]);
		}

	}