➿ Syntax: ➿ Initialization: The initialization statement initializes a variable that will be local to a for loop this means that it cannot be accessed outside the loop. It initializes the starting value of the counter variable ➿ Condition: The conditional statement is a boolean expression that will return either true or false. If an expression evaluates to true, then it will execute the loop
📠Unary operators operate on a single operand 📠 Unary plus (+), Unary minus (-) 📠Increment ++ operator, decrement — operator 📠Equality operators 📠The equality operator == returns true if its operands are of equal value, else it’ll return false. 📠 The Not Equal to != operator returns true if its operands are not of equal value, else it’ll return false.
📠Comparison operators📠A comparison operator compares two values.📠 <, >, <= , >= 📠Logical Operators📠Logical operators are used in decision making and loops. Logical operators perform logical operation such as `And`, `Or` and `Not`. These operators evaluate expressions and return boolean values.📠AndThe logical And( &&) operator returns true if both operands evaluate to the boolean true📠OrIf one of the two operands is true then the expression
📠 Operators are used to carry out operations on operands. Operands are values or variables on whom an operation is carried out on. 📠 For example 2 + 10 📠Arithmetic operators: addition, subtractions, multiplication, division and modulo 📠The modulo operator returns the remainder of a division operation e.g 5 % 2 is 1 📠The assignment operator is denoted by the equal to = sign and
⭐OnApplicationFocus() 📱 Sent to all GameObjects when the application loses or gets focused 📱 Function: checks if the current application is in focus or not 📱 Called immediately after OnApplicationPause() ✅ 📱 Called when an application (unity editor window) gets or loses focus 📱 when an application goes to the background (boolean: false ), as the game application has lost focus 📱 Returns false when
⭐OnApplicationPause() 📱 Sent to all GameObjects when the application pauses. 📱 Called after OnEnable()if the script component is enabled ✅ 📱 Called after Awake() if the script component is disabled ❌ 📱 Called when an application goes to the background (true) 📱 Called when an application comes to the front (false) 📱 OnApplicationPause() takes a boolean (true or false) as an argument
📦 A variable is a reference to some value in memory (either stack or heap) 📦Think of it as a container for holding a value. 📦C# is a strongly typed language. In C# when you declare and initialize a variable you must specify the data type of the value that the variable will hold/reference, followed by the variable name and then assign it a value:
🌌 Data types refer to a type of data for example character, sequence of characters (string), whole number , decimal etc 🌌 C# is a strongly typed language which means you have to indicate the data type of a value that a variable will refer to 🌌The Datatypes are something which gives information about: 1. Size of the memory location. 2. The range of data