Introduction
This Manager class keeps hold of all Resource Nodes, Item Containers and Crafters currently in the scene.
It also has some of the global settings for the asset. This is a required component for the asset to work.
Setting up
There is a prefab ResourceAndProductionManager located in /prefabs/Managers which contains all the necessary prefabs for the system to work.
Setting up otherwise is as simple as adding the component to a gameobject.
Settings
Miner
This component must be assigned for the system to work, assign a Miner to use the system. The Miner’s soul responsibility is how much hit damage is done.
Main Camera
This component must be assigned for the system to work, assign a Camera to use the system. There a several presets for the cameras set up in /prefabs/ControlModes to use.
Float Precision
The global precision of ItemAmounts where the Item’s Precision Type is Float. A value of 1 will produce something like 1.1 while a value of 2 will be something like 1.25.
Debugging
If enabled, produces various pieces of information in the console log. With lots of Resource And Production components in the scene this may be a lot. Try and isolate the components you are debugging before enabling this setting.
Scripting
There is only one public function to use, which is for the built in preset controllers.
/// <summary>
/// Enable or Disable the player controllers if not null
/// </summary>
/// <param name="enable"></param>
public void EnableDisableControllers(bool enable)