void Start()
{
//if (HPMANACanvas != null)
//{
// hpText = HPMANACanvas.transform.GetChild(1).GetChild(0).GetComponent<Text>();
// manaText = HPMANACanvas.transform.GetChild(2).GetChild(0).GetComponent<Text>();
// hpImage = HPMANACanvas.transform.GetChild(1).GetComponent<Image>();
// manaImage = HPMANACanvas.transform.GetChild(1).GetComponent<Image>();
// UpdateHPBar();
// UpdateManaBar();
//}
if (inputManagerDatabase == null)
inputManagerDatabase = (InputManager)Resources.Load("InputManager");
if (craftSystem != null)
cS = craftSystem.GetComponent<CraftSystem>();
GameObject canvas = GameObject.FindGameObjectWithTag("Canvas");
if (canvas.transform.Find("Panel - Inventory(Clone)") != null)
inventory = canvas.transform.Find("Panel - Inventory(Clone)").gameObject;
if (canvas.transform.Find("Panel - EquipmentSystem(Clone)") != null)
characterSystem = canvas.transform.Find("Panel - EquipmentSystem(Clone)").gameObject;
if (GameObject.FindGameObjectWithTag("Tooltip") != null)
toolTip = GameObject.FindGameObjectWithTag("Tooltip").GetComponent<Tooltip>();
if (inventory != null)
mainInventory = inventory.GetComponent<Inventory>();
if (characterSystem != null)
characterSystemInventory = characterSystem.GetComponent<Inventory>();
if (craftSystem != null)
craftSystemInventory = craftSystem.GetComponent<Inventory>();
}