Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- //inventory
- static var inventoryArray : int[] = [1,2,0,0,0];
- var inventoryText : GameObject;
- function Update () {
- inventoryText.guiText.text = "Health Potion " + "[" + inventoryArray[0] + "]" + "\n" + "Mana Potion " + "[" + inventoryArray[1] + "]";
- inventoryArray[0]++;
- inventoryArray[1] += 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement