A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Make sure the script is the same name as the class
ie: EnemyHealth is the class, the file in your project folder should be called EnemyHealth
Use code tags next time, there is a sticky in the scripting forum.
First, an int can not be a string! private int MatchMaxusers = "32"; should be...
Make one then? How can anyone know what you want?
Did you not realise how old this thread was and you posted a comment completly irrelevant to the question asked.
This really does not look like a scripting question to me :/
To the person above me, your terminology is slightly out.
void does not say you are defining a method (function). void is saying that there is no...
How is this almost ready? Misleading title :/
That "map" looks identical to the one i saw in Sketch Up
You can call any method or variable this way as long as there public :)
There are two ways to achieve this, one is keep a track of the index (position) in the list, or use a queue.
public List<AmmoTypes> ammoList...
Not 100% sure, how many gems we talking? I prefer to make each object maintain itself. Each power up in my game maintains its own information on...
I think you should let the Gems monitor there position from the player, not loop through the gems all the time. Each gem can actively check quite...
Ensure the Score class is on the game gameObject as the class you are calling from, and use the generic form of GetComponent
You put a ; at the end of this line
if(Physics.Raycast(ShootPoint.transform.position, ShootPoint.transform.forward, out Hit));...
That site is pretty good!
That would mean 10 switches, not very good practice.
You should really study the basics and read some good guides. There is plenty of documentation out there to explain it.
GameObject go =...
Start() only gets called once in the GameObject's lifetime
I was tired when i wrote my answer :P
I would do something like this
public int deckOfCards = new int;
for (i = 0; i < 52; i++) deckOfCards[i] = i;...
Awake gets called once in the GameObject's lifetime.
Look into OnEnable and OnDisable...