Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public void SetActivateCallback(BagpackActivateCallback bagpackActivateCallback)
 {
     this.bagpackActivateCallback = bagpackActivateCallback;
 }