public Knight(List <Vector3Int> potrolPoints, Colony owner) { if (!Knights.ContainsKey(owner)) { Knights.Add(owner, new List <Knight>()); } Knights[owner].Add(this); PatrolPoints = potrolPoints; KeyLocation = PatrolPoints[0]; Owner = owner; }
public Knight(List <Vector3Int> potrolPoints, Players.Player owner) { if (!Knights.ContainsKey(owner)) { Knights.Add(owner, new List <Knight>()); } Knights[owner].Add(this); PatrolPoints = potrolPoints; _position = PatrolPoints[0]; _owner = owner; }