Example #1
0
        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;
        }
Example #2
0
        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;
        }