Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 646 Bytes

3.comments_eng.md

File metadata and controls

29 lines (21 loc) · 646 Bytes

Home3.3 C# Comments

Comments

Comments are code lines that will not be executed, in other words, those lines will be visible only during development.

There is two ways to comment your code using C#

// using two slashs - comment just one line

/* using slash asterisk 
   comment one or more lines */

Comment help you to organize and understand your own code sheet.

/* condition to catch a Pokemon */
void CatchCondition(){
//if I have a Pokeball
if(pokeball >= 1){ 
    //so I catch a Chimchar!
    Debug.Log("You got a Chimchar!");
    }
}

Avançar 3.4 Variáveis