Ejemplo n.º 1
0
 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());
         }
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     current = this;
 }