to new git
This commit is contained in:
@ -2,4 +2,15 @@
|
||||
{
|
||||
Defenders,
|
||||
Attackers,
|
||||
}
|
||||
|
||||
public static class TeamExtension
|
||||
{
|
||||
public static Team GetOppositeTeam(this Team team)
|
||||
{
|
||||
if (team == Team.Attackers)
|
||||
return Team.Defenders;
|
||||
else
|
||||
return Team.Attackers;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user