void Awake() { hp = maxHealth; mana = maxMana; isDead = false; myAnim = GetComponentInChildren <Animator>(); gui = GameObject.Find("GUI").GetComponent <GUIInteraction>(); }
void Awake() { gui = GameObject.Find("GUI").GetComponent <GUIInteraction>(); resistencia = maxRes; exist = true; seguir = true; //radio = GetComponent<SphereCollider>().radius; radio = 2f; }
void Awake() { if (inst == null) { inst = this; } else { Destroy(this); } this.gameObject.SetActive(false); }
void Awake() { bubble = GameObject.FindGameObjectWithTag("Bubble"); dagda = GameObject.FindGameObjectWithTag("Dagda"); gui = GameObject.Find("GUI").GetComponent <GUIInteraction>(); padreFuegos = GameObject.Find("Fuegos"); dagtr = dagda.GetComponent <Transform>(); //rb = bubble.GetComponent<Rigidbody>(); tr = bubble.GetComponent <Transform>(); bs = bubble.GetComponent <BurbujaStats>(); fuegosLista = GameObject.FindGameObjectsWithTag("Fuego"); tr.position = dagtr.position + new Vector3(15, 0, 0); cont = 0; }