private void MoveLevel() { Stair stair = Map.current.GetTile(player.location) as Stair; Map old = Map.current; if (stair) { LoadMap(nextLevel); MoveMonsters(player, stair, Map.current); } else { UnityEngine.Debug.Log("You are unable to change levels."); } nextLevel = -1; LOS.lastCall.Deprint(old); LOS.lastCall = null; CameraTracking.singleton.JumpToPlayer(); LOS.GeneratePlayerLOS(Map.current, player.location, player.visionRadius); }
//Special case, because it affects the world around it through the player's view. public override void UpdateLOS() { view = LOS.GeneratePlayerLOS(Map.current, location, visionRadius); }