This question is still very vague, but let's see where this gets you. To store a currency, you just create an int.
int currency = 0;
To create multiple currencies for 2 (or more) teams, you should create an array.
int[] currencies = new int[2];
Then each team will access it by using their 'identifier', which is 0 or 1, depending on the team. (or 2,3,4 etc if you have more teams).
int team = 0;
int myTeamCurrency = currencies[team];
↧