things
This commit is contained in:
parent
a17810ffeb
commit
4e91f448c9
826 changed files with 66 additions and 8 deletions
34
Assets/Scripts/UnitScripts/GlobalsVariable.cs
Normal file
34
Assets/Scripts/UnitScripts/GlobalsVariable.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public static class GlobalsVariable
|
||||
{
|
||||
|
||||
public static int money=100;
|
||||
|
||||
public static List<AbstractUnit> AliveUnitsTeamA = new List<AbstractUnit>();
|
||||
public static List<AbstractUnit> AliveUnitsTeamB = new List<AbstractUnit>();
|
||||
|
||||
public static AbstractUnit QueenA;
|
||||
public static AbstractUnit QueenB;
|
||||
|
||||
public static Dictionary<string, int> prices = new Dictionary<string, int>()
|
||||
{
|
||||
{ "Zombie",1 },
|
||||
{ "Squelette",2 },
|
||||
{ "Creeper",3 },
|
||||
{ "Sorciere",3 },
|
||||
{ "Golem",8 }
|
||||
};
|
||||
|
||||
public static void Pay(int X)
|
||||
{
|
||||
money -= X;
|
||||
}
|
||||
|
||||
public static void Gain(int Y)
|
||||
{
|
||||
money += Y;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue