- Home /
how do i use dates to give the player money??
static var inventoryArray : int[] = [0,0,3,4,5];
var InputText : GUIText;
var ArrayGrid = 0;
function Update () {;
//con
InputText.text = "con " + "[" + inventoryArray[0] + "]" +
"\n" + "general " + "[" + inventoryArray[1]+ "]";
if(Calendar_script.calendar_months[3])
player_inventory.player_money += 1;
i have a continue button that when it is clicked goes to 3 months. the problem is i want it so that every inventoryArray[1] will give me 1 euro so if you have bought that twice it will give you two euro but for some reason it only gives me one euro.
Comment
Best Answer
Answer by coding_crow · Oct 04, 2014 at 02:37 PM
Not sure if I understand your question, but if I do, you need to change:
player_inventory.player_money += 1;
to
player_inventory.player_money += inventoryArray[1];
Your answer
![](https://koobas.hobune.stream/wayback/20220613164358im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
C# DateTime inspector 2 Answers
Date field for UI inputfield? 0 Answers
How to save DateTime in a list 1 Answer
Are we aloud to get Money. 1 Answer
Help with GUI Currency 1 Answer