// Disparo void Shoot() { GameObject bala = (GameObject)Instantiate(bullet, bulletPoint.position, bulletPoint.rotation); BulletManager realBullet = bala.GetComponent <BulletManager>(); if (realBullet != null) { realBullet.Assing(target); } }
// Disparo void Shoot() { GameObject bala = (GameObject)Instantiate(bullet, bulletPoint.position, bulletPoint.rotation); BulletManager realBullet = bala.GetComponent <BulletManager>(); if (realBullet != null) { realBullet.Assing(target); } }