/// <summary> /// Copy constructor /// </summary> public MatchPlayer(MatchPlayer matchPlayer) { matchData = matchPlayer.matchData; Id = matchPlayer.Id; Name = matchPlayer.Name; Level = matchPlayer.Level; Number = matchPlayer.Number; currentStats = matchPlayer.currentStats; cachedStats = matchPlayer.cachedStats; oldRoundStats = matchPlayer.oldRoundStats; PlayTime = matchPlayer.PlayTime; InvertedTime = matchPlayer.InvertedTime; GoalsNum = matchPlayer.GoalsNum; TwoPointers = matchPlayer.TwoPointers; ThreePointers = matchPlayer.ThreePointers; Passes = matchPlayer.Passes; Catches = matchPlayer.Catches; Won = matchPlayer.Won; Turnovers = matchPlayer.Turnovers; playspaceLocation = matchPlayer.playspaceLocation; }