Exemplo n.º 1
0
 /// <summary>
 /// Intended to be used by the "Buttons" script only
 /// </summary>
 public void OnPurchaseConfirmed()
 {
     CoinsCollected      -= characterSetup[highlightedCharacterIndex].price;
     UnlockProgression    = BoolCasting.BoolToIntBit(UnlockProgression, highlightedCharacterIndex, true);
     isConfirmingPurchase = false;
     UpdateUI();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Check if the actual highlighted character is already unlocked
 /// </summary>
 /// <returns>Returns true if the actual highlighted character is already unlocked</returns>
 public bool IsHighlightedCharacterUnlocked()
 {
     return((BoolCasting.IntBitToBool(UnlockProgression, highlightedCharacterIndex) ||
             characterSetup[highlightedCharacterIndex].price <= 0) ? true : false);
 }