//GameObject torre; //Vector3 posinicial; void Start() { golpesonido = GetComponent <AudioSource>(); construirmanager = Construirmanager.instance; agent.destination = GameObject.Find("villa").transform.position; vida_golem = vida_max; }
void Start() { rend = GetComponent <Renderer>(); starcolor = rend.material.color; construirmanager = Construirmanager.instance; }
void Start() { sonidogolpe = GetComponent <AudioSource>(); construirmanager = Construirmanager.instance; agent.destination = GameObject.Find("villa").transform.position; vida_esqueleto = vida_max; // animator.enabled = false; }
private void Awake() { if (instance != null) { Debug.LogError("hay un erro :;v hay mas en la escena"); return; } instance = this; monedas = 300; }
// bool puedeconstruir = true; private void Start() { construirmanager = Construirmanager.instance; // scrit gracias a que es estatico }