예제 #1
0
 // Use this for initialization
 void Start()
 {
     currentHP = HPLeveles[1];
     currentAttack = attackLevels[1];
     currentDefence = defenceLevels[1];
     heroHealth = FindObjectOfType<HeroHealthManager>();
 }
예제 #2
0
 void Start()
 {
     inv = GameObject.Find("Inventory").GetComponent<Inventory>();
     hero = GameObject.Find("Hero").GetComponent<HeroHealthManager>();
     //characterPanel = GameObject.Find("Character Panel").GetComponent<CharacterPanel>();
     tooltip = inv.GetComponent<ToolTip>();
 }