Ejemplo n.º 1
0
 /**
  * Acquire a backpack upgrade
  */
 public void GetUpgrade(BackpackUpgrade upgrade)
 {
     if (!bpUpgrades.Contains(upgrade))
     {
         bpUpgrades.Add(upgrade);
         EventManager.Instance.Send(new GetBackpackUpgradeEvent(upgrade));
     }
     else
     {
         Debug.Log("BackpackInventory: Cannot get backpack upgrade, upgrade is already acquired");
     }
 }
Ejemplo n.º 2
0
 public GetBackpackUpgradeEvent(BackpackUpgrade upgd)
 {
     name    = "GetBackpackUpgradeEvent";
     upgrade = upgd;
 }
Ejemplo n.º 3
0
 /**
  * Do we have the specified backpack upgrade?
  */
 public bool HasUpgrade(BackpackUpgrade upgrade)
 {
     return(bpUpgrades.Contains(upgrade));
 }
Ejemplo n.º 4
0
 public GetBackpackUpgradeEvent(BackpackUpgrade upgd)
 {
     name	= "GetBackpackUpgradeEvent";
     upgrade	= upgd;
 }
Ejemplo n.º 5
0
 /**
  * Do we have the specified backpack upgrade?
  */
 public bool HasUpgrade(BackpackUpgrade upgrade)
 {
     return bpUpgrades.Contains(upgrade);
 }
Ejemplo n.º 6
0
 /**
  * Acquire a backpack upgrade
  */
 public void GetUpgrade(BackpackUpgrade upgrade)
 {
     if (!bpUpgrades.Contains (upgrade)) {
         bpUpgrades.Add (upgrade);
         EventManager.Instance.Send (new GetBackpackUpgradeEvent (upgrade));
     } else {
         Debug.Log ("BackpackInventory: Cannot get backpack upgrade, upgrade is already acquired");
     }
 }