Ejemplo n.º 1
0
    private int waitedSeconds = 0;          // Seconds waited for our idle animations trigger

    private void Start()
    {
        if (anim.Equals(null))
        {
            anim = transform.GetChild(0).GetComponent <Animator>();
        }
        if (playerAttack.Equals(null))
        {
            playerAttack = GetComponent <PlayerAttack>();
        }
        if (battleStats.Equals(null))
        {
            battleStats = GetComponent <BattleStats>();
        }
    }
Ejemplo n.º 2
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>();
     }
 }