byte MaxPlayerCount(MultiPlayMode mode) { if (mode == MultiPlayMode.Free) { return(8); } return(6); }
public void TeamDeath() { _modeBg[0].color = new Color(0.5f, 0.5f, 0.5f); _modeBg[1].color = Color.white; _multiPlayMode = MultiPlayMode.Team; _maxPlayerCount = MaxPlayerCount(_multiPlayMode); _maxPlayerCountText.text = _maxPlayerCount.ToString(); }