SHOW:
|
|
- or go back to the newest paste.
1 | //****** Donations are greatly appreciated. ****** | |
2 | - | //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ****** |
2 | + | //****** You can donate directly to Jesse through paypal at jesse_etzler@yahoo.com ****** |
3 | ||
4 | //inventory | |
5 | static var inventoryArray : int[] = [1,2,0,0,0]; | |
6 | var inventoryText : GameObject; | |
7 | ||
8 | function Update () { | |
9 | ||
10 | inventoryText.guiText.text = "Health Potion " + "[" + inventoryArray[0] + "]" + "\n" + "Mana Potion " + "[" + inventoryArray[1] + "]"; | |
11 | inventoryArray[0]++; | |
12 | inventoryArray[1] += 2; | |
13 | } |