public World(Game game, int seed, GameSave save) { Game = game; Map = new Map(this, game.MapType, seed, save.Level, save.Difficulty); var bounds = Map.Bounds; TerrainLayer = new TerrainLayer(bounds); ShroudLayer = new ShroudLayer(bounds); WallLayer = new WallLayer(bounds, ShroudLayer); PhysicsLayer = new PhysicsLayer(bounds); SmudgeLayer = new SmudgeLayer(); ActorLayer = new ActorLayer(bounds); WeaponLayer = new WeaponLayer(); ParticleLayer = new ParticleLayer(bounds); PathfinderLayer = new PathfinderLayer(bounds); WeatherManager = new WeatherManager(this, game.MapType); }
void Awake() { instance = this; }