en
Vahe Karamian

Introduction to Game Programming: Using C# and Unity 3D

Повідомити про появу
Щоб читати цю книжку, завантажте файл EPUB або FB2 на Букмейт. Як завантажити книжку?
  • polymarinaцитує4 роки тому
    // The parameter x is passed by reference.
    // Changes to x will affect the original value of x.
    static void SquareIt(ref int x)
    {
    x *= x;
    System.Console.WriteLine("The value inside the method: {0}", x);
    }
    static void Main(string[] args)
    {
    int n = 5;
    System.Console.WriteLine("The value before calling the method: {0}", n);
    SquareIt(ref n); // Passing the variable by reference.
    System.Console.WriteLine("The value after calling the method: {0}", n);
    System.Console.WriteLine("Press any key to exit.");
    System.Console.ReadKey();
    }
  • polymarinaцитує4 роки тому
    [access modifier] return-type method-name([parameter-type parameter-name[]]) { /* method-body */ }
  • polymarinaцитує4 роки тому
    access modifier] return-type method-name([parameter-type parameter-name[]]) { /* method-body */ }
  • polymarinaцитує4 роки тому
    for (int loopCount = 0; loopCount < 10; loopCount++)
    {
    // do something here ...
    }
  • polymarinaцитує4 роки тому
    while(x<10)
    {
    // do something here ...
    x++;
    }
    do
    {
    // do something here ...
    x++;
    } while (x < 10);
    Code Block 5-loop structure samples
  • Dragos Mihaiцитує6 років тому
    Program = Data + Algorithm
    A program is like a recipe. It contains a list of variables that represent the data to be processed, and a list of directions, the algorithm(s) that perform special operations on the data.
fb2epub
Перетягніть файли сюди, не більш ніж 5 за один раз