
Learn how statements end with semicolons, execute in the given sequence, and are grouped into blocks with curly braces, using keywords to declare variables and control flow.
Explore how comments explain code, improve readability, and prevent execution. Learn to use single-line comments with // and block comments to annotate code, noting which lines are executed.
Explore variables in Unity by declaring and initializing values, using basic types like string, int, boolean, and float, and learning scope, accessibility, and multi-variable declarations.
Learn how to use constants to represent unchanging values in your code, mapping numbers to friendly names like start, stop, and pause for clearer, more readable logic.
Explore arrays in Unity from zero to proficiency, covering single and multi-dimensional arrays, declaration, initialization, 0-based indexing, bounds, and looping to access elements.
Master arithmetic, assignment, and comparison operators to manipulate numbers and strings. Practice addition, subtraction, multiplication, division, concatenation, and value comparisons with conditional statements.
Explore conditional statements by testing if conditions are true, combining them with and, and applying not (exclamation mark) in boolean logic through weather and wind speed examples.
explains how switch statements control program flow by evaluating an integer variable and executing the matching case, with breaks and a default for mutually exclusive choices.
Master loops to perform repetitive tasks efficiently, using while and do-while structures to test conditions at the start or end, increment counters, and instantiate objects in games.
Explore how a class groups objects by shared attributes and behaviors, using a bike analogy to show attributes like color, speed, wheels, and actions such as accelerate and turn.
Define a class with public and private access modifiers, declare named member variables with types, and implement methods such as accelerate and turn right to control a bike object.
Access class member variables and methods using dot notation, create objects from a class, and use getters and setters to manage access and behavior.
Explore how constructors initialize new objects, using overloading, default constructors, and parameters to set properties like color and speed when creating instances with the new operator.
Learn how destructors are invoked when objects are deleted, with the destructor’s name matching the class and performing actions before removal, and note they have no return value.
Discover how static variables share a single instance across a class and how static methods enable locating objects by name without instantiating, while retrieving constants.
Explore inheritance in programming by defining a base class with general vehicle properties and creating derived motorized vehicles that override speed and engine attributes.
Explore methods as blocks of instructions that execute when invoked, accept parameters, and return results; learn function syntax, polymorphism, and how to call them with examples like calculate sum.
Learn the difference between local, member, and global variables in C# within Unity scripts, including how to declare them, their scope, and static public variables.
Get acquainted with the Unity interface by exploring the hierarchy, scene camera, game view, inspectors, project view, and console window, and learn how console messages assist scripting feedback.
Create your first Unity script by defining a public class with a string name, adding a start method that prints name to the console, and noting update runs every frame.
Create your first Unity script, declare a name variable, and print a console message after attaching it to a game object; learn to run the scene and view output.
learn how the update method runs every frame by contrasting start and update, printing messages to the console, and examining local versus member variables.
Explore the scope of variables in Unity scripts, distinguishing member variables from local variables, and see how scope affects accessibility in start and other methods.
Create a simple counter by declaring an integer initialized to zero, incrementing with ++, and printing each updated value to the console, using string concatenation and a class member variable.
Learn to create and call methods in Unity, starting with void methods that return no data, are public for access from anywhere, print messages like hello world, and explore parameters.
Learn how to define and call methods, with zero, one, or two parameters, print messages, and return information based on the parameters.
Explore creating and using methods to calculate age from a date of birth, returning an integer and printing the result, with parameters, scope, and basic object oriented principles.
Create a simple bike class in Unity with private speed and name, a public accelerate method, and a constructor to log creation; instantiate and accelerate the bike.
Explore constructor overloading in Unity by creating a bike class with a default constructor and a second constructor that takes speed and name, illustrating polymorphism and parameter passing.
avoid common unity scripting errors by checking variable scope, case sensitivity, semicolons, and closing brackets, and following best practices, aided by line numbers to locate issues.
Set up a Unity scene by creating ground and cubes, assign tags for pickup objects, and prepare first-person navigation to detect and collect items in a reusable maze project.
Attach a collect object script to the first person controller and use box colliders to detect collisions, printing the collided object's name and using its tag for scoring later.
Discover how to detect tagged objects in Unity and destroy them on collision by assigning the 'pick me' tag, checking it in code, and removing the object.
Create a simple scoring system in Unity by increasing the integer score when collecting three or four boxes, printing a message, and gating progression to the next level.
Load and manage new scenes with a scoring system that increases score on collisions and advances to the next level when thresholds are met; configure build settings accordingly.
Create a brand new script to build a timer in Unity, updating every frame to count seconds, display in the console, and trigger a level restart when time runs out.
Create a Unity timer by converting elapsed time to integers, displaying minutes and seconds in the console, and using the modulo operator to reset seconds after 60.
Create a timer that reloads the current level when time hits 120 seconds, using scene management to load the scene and display the timer in the user interface.
Learn to create a timer UI in Unity by reusing a timer script, displaying its output on screen with a text element, and adjusting font size, color, and alignment.
Create an on-screen timer in Unity by wiring a text UI element to a timer and displaying minutes and seconds with the Time UI component.
Create collectible boxes near the player using the collect objects script, test collisions to collect and destroy them, and, after collecting more than three, transition to the next level.
Create a text-based user interface in Unity to display messages when items are collected, and adjust color, font size, and layout while implementing auto-clear after a delay.
display the number of boxes collected and show a pickup message in Unity's UI, update the score, and hide the message after two seconds with a timer.
The lecture shows how to rotate collectible boxes in Unity with a rotation script using transform.rotate and vector3 to spin on the x and y axes, boosting visibility.
Follow a beginner Unity workflow to create and rotate petrol can boxes, tag them, and modify the collect objects script so a first-person controller can pick up cans.
Learn to implement a first-person collection mechanic in Unity by detecting collisions with petrol cans, increasing your score, destroying collected cans, and providing feedback.
learn to create a text UI named 'user' in Unity, adjust font size and color to white, clear and display messages, and enable a plane to show messages on collision.
Learn how to set up a plane for collision detection in Unity, duplicating the plane, disabling movement scripts, applying the plane tag and colliders to ensure precise collision events.
Detect collisions with the plane, verify cans collected, and display contextual user interface messages; hide messages after a few seconds and enable plane activation once three cans are gathered.
Learn how to deactivate and reactivate a second plane in Unity by controlling a hidden plane with a script that toggles activation when the player collects enough cans.
Deactivate the initial plane and activate the hidden plane, then enable first person control to fly the plane after collecting boxes, using scripts and scene object management.
Tidying up the code (part 2) demonstrates refining in-game messages, controlling a timer, and preparing to add menus and start options for a beginner Unity project.
Create a splash screen with centered instructions and a start button, adjust text and font, save and rename scenes, and link menus from splash to instructions to the game.
Unity guides you through creating and linking menus, including a splash screen, instructions, and maze scenes, using a C# scene-management script to load scenes via button clicks, with public methods.
Link the maze score by creating a top-right UI text, save and continue the score across scenes with player preferences, and update the on-screen score as play progresses.
Learn how to display and persist a score across scenes in a Unity game by using UI text, top-right placement, and player preferences to save integers between levels.
Create four UI item icons and activate each as items are collected, then update and display the score across scenes.
Add audio in Unity by wiring an audio source to the first-person controller and playing the collect clip when picking up objects.
In part 2, add sound effects and background music to a Unity scene, triggering audio when collecting a book and enhancing the environment for beginners.
Learn to add background audio in a unity scene, test audio playback with a clip, and prepare to integrate background music into the environment.
Add background audio in Unity using a script to mute and unmute via a key press, control the AudioSource component, and manage playback between scenes.
Preserve background audio between scenes in Unity by keeping the sound object alive with do not destroy on load and Awake handling across scene transitions.
Define and manage user interface elements with a container. Scale layouts to screen size using a reverse reference resolution and anchors to keep positions consistent across displays.
Create a top-down mini-map by using a second camera as a viewport for the first-person controller, adjusting depth and position to display the map over the main view.
Create a top-down map view synced with the first-person controller by placing color-coded dots as map markers, organized into layers for selective display on the mini map.
Design a mini-map in Unity by adjusting the camera height to reveal dots representing objects, and use a mini-map controller to display messages and support a top-down view.
Create and attach a camera for the mini-map, then write a toggle script that shows or hides the map on key press, enabling dynamic display based on user input.
In unity, add an AI-controlled NPC in a maze, bake the navmesh, and have it follow the player by linking to the first person controller.
Create an npc that detects collisions with the player using on collision callbacks, then reloads the current level and displays collision messages to illustrate a simple currency/score mechanic.
initialize and reset the score via player preferences on the splash screen, setting it to zero before loading scenes, and fix duplicate plays by using don't destroy on load.
Fix duplicated background sound in a Unity scene by tagging the sound, locating duplicates, destroying extras, and reloading the scene to ensure only one background track plays.
Create a game completed scene to show a splash screen with well done, using a trigger to load the splash or restart the game.
Learn how to detect when the player escapes the island by using a defined trigger area and collider, tagging the player, and triggering a game complete scene in Unity.
In this course, you will become comfortable with coding in C# for Unity by creating a survival game that includes both an indoor and an outdoor environment.
You will learn how to code in C# and how to use some common coding concepts to add interactivity to your game including variables, conditional statements, methods, and much more.
You will create your own classes, and methods.
You will create and update a user interface for your game that includes a mini-map, buttons, menus, text, and images. You will also learn to include both background audio and sound effects for an epic atmosphere. You will also learn how to hide/display the mini-map and mute the audio when necessary.
You will implement a scoring system, and to keep track of the objects collected by the player using a simple inventory system. You will also learn how to store global information abou the game using the Player preferences..
You will then create a finished game, with realistic graphics, from start to finish with menus, audio, a splash screen, instructions, sound, two levels (one indoor and one outdoors), NPCS (Non-Player Characters) that chase the player, and a plane that the player needs to find and pilot to escape the island.