// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>(); giro = this.GetComponent <SpriteRenderer>(); int posicion = Random.Range(0, posicionbatalla2.Length); this.transform.position = posicionbatalla2[posicion].transform.position; controlanimaciones = GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>(); giro = this.GetComponent <SpriteRenderer>(); controlanimaciones = GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>(); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>(); giro = this.GetComponent <SpriteRenderer>(); }