Ejemplo n.º 1
0
        public MapRoomScannerUpgrading(uGUI_MapRoomScanner uGuiMapRoomScanner)
        {
            this.uGuiMapRoomScanner = uGuiMapRoomScanner;

            uGuiMapRoomScanner.mapRoom.storageContainer.container.onAddItem    += this.OnAddItem;
            uGuiMapRoomScanner.mapRoom.storageContainer.container.onRemoveItem += this.OnRemoveItem;
        }
Ejemplo n.º 2
0
 public static void RemoveInstance(uGUI_MapRoomScanner uGuiMapRoomScanner)
 {
     Instances.Remove(uGuiMapRoomScanner);
 }
Ejemplo n.º 3
0
 public static void AddInstance(uGUI_MapRoomScanner uGuiMapRoomScanner, MapRoomScannerUpgrading upgrading)
 {
     Instances.Add(uGuiMapRoomScanner, upgrading);
 }
Ejemplo n.º 4
0
 static void Postfix(uGUI_MapRoomScanner __instance)
 {
     MapRoomScannerUpgrading.RemoveInstance(__instance);
 }
Ejemplo n.º 5
0
        static void Postfix(uGUI_MapRoomScanner __instance)
        {
            var upgrading = new MapRoomScannerUpgrading(__instance);

            MapRoomScannerUpgrading.AddInstance(__instance, upgrading);
        }