|
|
@ -21,6 +21,7 @@ public class Character : MonoBehaviour |
|
|
|
|
|
|
|
[Tooltip("Current Inventory of the player")] |
|
|
|
public Inventory Inventory; |
|
|
|
public bool CloneInventoryOnStart = false; |
|
|
|
|
|
|
|
[SerializeField] |
|
|
|
[Tooltip("Character to display")] |
|
|
@ -36,7 +37,7 @@ public class Character : MonoBehaviour |
|
|
|
|
|
|
|
private void Start() |
|
|
|
{ |
|
|
|
if (Inventory != null) |
|
|
|
if (Inventory != null && CloneInventoryOnStart) |
|
|
|
Inventory = Inventory.Clone(Inventory); |
|
|
|
|
|
|
|
//If no starting block find one below it
|
|
|
|