Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     if (itemSlots.Equals(null))
     {
         itemSlots = GetComponent <ItemSlots>();
     }
     if (anim.Equals(null))
     {
         anim = transform.GetChild(0).GetComponent <Animator>();
     }
     if (battleStats.Equals(null))
     {
         battleStats = GetComponent <BattleStats>();
     }
     if (itemList.Equals(null))
     {
         itemList = GameObject.FindWithTag("GameController").GetComponent <ItemList>();
     }
 }