Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        enemy = GameObject.FindGameObjectWithTag("Enemy");

        wave = 0;
        uI   = GameObject.FindGameObjectWithTag("UI").GetComponent <UI_Behavior>();
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     controls  = GetComponent <Controls>();
     currentHP = maxHP;
     uI        = GameObject.FindGameObjectWithTag("UI").GetComponent <UI_Behavior>();
 }