Beispiel #1
0
 void Start()
 {
     posicionInicial = transform.position;
     player          = GameObject.FindGameObjectWithTag("Player").transform;
     MyAnimator      = GetComponent <Animator>();
     MySprite        = GetComponent <SpriteRenderer>();
     scriptDisparo   = GetComponent <DisparoIAEnemiga>();
 }
Beispiel #2
0
 void Start()
 {
     player        = GameObject.Find("Player").GetComponent <Transform>();
     mRb           = GetComponent <Rigidbody2D>();
     mSr           = GetComponent <SpriteRenderer>();
     scriptDisparo = GetComponent <DisparoIAEnemiga>();
     mA            = GetComponent <Animator>();
 }