private static void UpdateMap(GlobalMapRules instance, GlobalMapState globalMap, IEnumerable <BlueprintMapEdge> blueprintMapEdgeSet) { foreach (var blueprint in blueprintMapEdgeSet) { try { globalMap.GetEdgeData(blueprint).UpdateExplored(1f, 1); if ((bool)instance) { instance.GetEdgeObject(blueprint).UpdateRenderers(); } } catch (Exception ex) { modLogger.Log(ex.ToString()); } } }
void Awake() { current = this; }