C#
C# is a difficult language to learn off by heart so im just going to teach you how to opperate variables.
Okay so the first thing you need to know is what is a variable? A variable is a word or letter that is not used in the coding language that can be given a value, these values include booleans which is True/False statement. floats which are numbers with a decimal. and integers which are numerals without a decimal. now to make a variable in C# you need to state its protection status which has to be either private or public. a private variable can only be used inside that one script where as a public variable can be used in any piece of code INSIDE the project. so here is an example.
Okay so the first thing you need to know is what is a variable? A variable is a word or letter that is not used in the coding language that can be given a value, these values include booleans which is True/False statement. floats which are numbers with a decimal. and integers which are numerals without a decimal. now to make a variable in C# you need to state its protection status which has to be either private or public. a private variable can only be used inside that one script where as a public variable can be used in any piece of code INSIDE the project. so here is an example.
_As you can see variable making is quite simple. now to opperate a variable, type casting and using if statements to generate a very simple answer.
_As you can see the trigger needs to equal true for number to get its value. allowing you to operate alot of code from one variable saving lots of typing. this teaches you how to use basic if statements, variables ,sums and typecasting. This ends our C# tutorial.