c# function
public int AddNumbers(int number1, int number2){ int result = number1 + number2; if(result > 10) { return result; } return 0;}public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets
//for a functionvoid draw() {
//code here
}
//Calls the function every frame making nice and satisfying movement
void Update() {
draw()
}
Also in C#:
- quaternion euler
- json ignore property c#
- unity3d get component
- c# razor add disabled to button if
- unity set material color
- c# store generic type without arguments
- asp.net core allow all origins
- serilog loglevel order
- convert word files to plain text c#
- string isnullorempty vs isnullorwhitespace
- c# bool list count true
- convert string to decimal c#
- texture to image unity
- edit bool from diffirent script
- unity making homing missile
- c# return multiple value unity
- write last line txt file c#
- switch case c# contains
- how to declare variables in c#
- reverse a string in c#
- make string
- O thread de chamada não pode aceder a este objecto porque existe outro thread que já o tem
- unity rotate around point
- how to change scenes in unity