Esempio n. 1
0
 void Awake()
 {
     SetSprites();
     SRenderer      = GetComponent <SpriteRenderer>();
     rigidBody      = GetComponent <Rigidbody2D>();
     aud            = GetComponent <AudioSource>();
     zeroFire       = GetComponent <ZeroFire>();
     posicaoInicial = GameObject.Find("PosicaoInicial").GetComponent <Transform>();
     //audSource = GetComponent<AudioSource>();
 }
Esempio n. 2
0
 void Start()
 {
     hero     = GetComponent <ClasseBase>();
     zerofire = GetComponent <ZeroFire>();
 }