Unity C# Tutorial: Branching: Having your code take different paths


Our code is going to need to take different paths at times. It will need to do different things depending on what the user has done or what things have happened in the world. Branching allows us to do that so it’s time to start to see how to set that up.

Find the code here: https://github.com/GameDevEducation/DevEssential_Conditionals