public void RestartTestDisplay() { pathfinding.ResetGraph(); storedPaths.Clear(); pathMarkers.Clear(); GameLevelExtensions.ResetPlayerGoldAndLives(); if (MoneyUpdated != null) { MoneyUpdated(); } UpdateWave(); UpdateLife(); foreach (var tower in EntitiesRunner.Current.GetEntitiesOfType <Tower>()) { tower.Dispose(); } }
public Vector2D GetRealPosition(Vector2D point) { //return GameLevelExtensions.GetGridPosition(point) + Vector2D.Half; return(GetWorldCoordinates(GameLevelExtensions.GetGridPosition(point))); }