A help in code (a advanced C++ part)

Hi! …ahm…first a coment, the FPS tutorial is very cool!!! Concrats for all in Unity.
Can you help me with this piece of code Unity FPS, with a description of what actually happening in code below.
(Because has some things about c++ that I don’t know).

for (var b in coms) {
** var p : MonoBehaviour = b as MonoBehaviour;**
** if (p)**
** p.enabled = false;**
}

This is not C++. This is not C#. This is Unityscript. If you don’t know what language you’re programming in, your knowledge of that language must be very basic. Why don’t you begin with Unity’s scripting tutorial?

Unity Game Development Essentials has imho an even better intro in chapter 3, but it costs a few coin. :slight_smile:

Ups.
Sorry. I did not know it Ostagar.
Ok. Thanks for the link. I will give a look there.