master
branch-name#issueNumber
rat-hats#13
master
, or other origin, as possibleScenes are a bit of a fucker to manage. For this reason we should sperate out the scenes that we work on. From the Scenes that we want to maintain as playable demos. These will be refered to as Test
and Production
repectively.
Test
scenes are not tracked in GitHub and can be found under Scenes/Test
. These are for your reference only.Scenes/Production
you'll find the Production Scenes. These are tracked on GitHub and you should only be working in them if you intend to.All scripts that are used to Control GameObjects (i.e. tell them to move, resize them). Most of these have an underlying data model, to explain this let's look at the Unit and its Controller:
MonoBehaviour
component named UnitController
UnitController
(i.e. we don't want to have values like speed
or health
). This type of information should instead be tracked in a Unit
model, which contains health
, speed
, attackRate
etc.Handlers are used to handle a specific event or situation. The most notable is that of the IOHandler
which handles the input and output given to the game.
In order to get the LoadSystem to load Units in correctly first you'll need to make sure that your load order is set-up corrrectly. Go under Edit > Project Settings > Script Execution Order
and set the order to match the following: