Exemplo n.º 1
0
        public void SetTarget(HexPoint target)
        {
            _path = WayPoints.FromPath( Map.FindPath(this, target) );

            if (_path.Peek == null)
                return;

            Assert.AreEqual(Point, _path.Peek);
            Assert.AreEqual(target, _path.Goal);

            UpdatePathMesh();
            UpdateUnitAction();

            // remove the current position
            _path.Pop();
        }