COURSE

C# for Unity Developers

$143.00

Learn the C# you actually need in Unity: types, events, components, and how to stop a script from becoming a pile of unrelated code.

SKU: MGD-C15 Category:

About

Learn the C# you actually need in Unity: types, events, components, and how to stop a script from becoming a pile of unrelated code. Across about 18 hours you will choose a type for health, speed, and names, put one job in one component, send a message when health changes, and split a long method.

Beginner · 18 hours · Unity

Curriculum

Module 1 · Types and data

  1. Choose a type for health, speed, and names
  2. Keep related data together
  3. Avoid a public field the rest of the game can change by accident
  4. Read a short script and name what it stores

Module 2 · Components

  1. Put one job in one component
  2. Talk to another component through a clear method
  3. Remove a reference you do not need
  4. Test the component in an empty scene

Module 3 · Events

  1. Send a message when health changes
  2. Subscribe without creating a loop
  3. Unsubscribe when the object is destroyed
  4. Log the event so you can see it fired

Module 4 · A readable script

  1. Split a long method
  2. Name variables for what they mean
  3. Delete unused code
  4. Ask a teammate to explain the script
mobile-gamedev
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.