public void OnUpdate(TCODMap currentMap)
        {
            _currentMap.copy(currentMap);

            if (_currentPath == null)
            {
                return;
            }

            _currentPath.Dispose();
            _currentPath = new TCODPath(_currentMap, 1.14f);
            ComputePath(_currentX, _currentY, _destX, _destY);
        }
Exemple #2
0
 public void Kill()
 {
     Pathfinder.Dispose();
     //Item item = Item.Generate(Item.Prefab.Corpse, Position);
     for (int i = 0; i < 2 + Game.Current.RNG.Next(7); i++)
     {
         Bleed();
     }
     GenerateCorpse();
     Game.Current.Characters.Remove(this);
 }