public static void Postfix()
 {
     if (VillagersList.Instance == null)
     {
         Main.logger.Log($"create ui: {VillagersList.Load()}");
     }
     else if (!VillagersList.Instance.Open)
     {
         VillagersList.Instance.ToggleWindow();
     }
 }
Example #2
0
 public static void Postfix()
 {
     Main.logger.Log($"create ui: {VillagersList.Load()}");
 }
 private void Awake()
 {
     Main.logger.Log("awake");
     instance = this;
     DontDestroyOnLoad(this);
 }