Exemplo n.º 1
0
    // 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>();
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     player             = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>();
     giro               = this.GetComponent <SpriteRenderer>();
     controlanimaciones = GetComponent <Animator>();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>();
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <movimientoplayer>();
     giro   = this.GetComponent <SpriteRenderer>();
 }