private void Awake() { this.IsEmpty = true; this.icon = this.gameObject.GetComponentsInChildren <Image>()[1]; this.iconRarity = this.gameObject.GetComponentsInChildren <Image>()[2]; this.bagpackDeleteCallback = null; this.bagpackInfoCallback = null; this.bagpackActivateCallback = null; this.item = null; }
public void SetCallbacks(BagpackActivateCallback bagpackActivateCallback) { this.HelmetSlot.SetActivateCallback(bagpackActivateCallback); this.HelmetSlot.SetInfoCallback(this.InfoFromEquipment); this.BodySlot.SetActivateCallback(bagpackActivateCallback); this.BodySlot.SetInfoCallback(this.InfoFromEquipment); this.WeaponSlot.SetActivateCallback(bagpackActivateCallback); this.WeaponSlot.SetInfoCallback(this.InfoFromEquipment); this.ShieldSlot.SetActivateCallback(bagpackActivateCallback); this.ShieldSlot.SetInfoCallback(this.InfoFromEquipment); this.TrinketSlot.SetActivateCallback(bagpackActivateCallback); this.TrinketSlot.SetInfoCallback(this.InfoFromEquipment); this.GlovesSlot.SetActivateCallback(bagpackActivateCallback); this.GlovesSlot.SetInfoCallback(this.InfoFromEquipment); this.BootsSlot.SetActivateCallback(bagpackActivateCallback); this.BootsSlot.SetInfoCallback(this.InfoFromEquipment); this.IsCallbacksSeted = true; }
public void SetActivateCallback(BagpackActivateCallback bagpackActivateCallback) { this.bagpackActivateCallback = bagpackActivateCallback; }