protected void Shoot() { GameObject bulletGO = (GameObject)Instantiate(bulletPrefab, transform.position, transform.rotation); bulletGO.transform.rotation = Quaternion.Euler(0, 0, 0); ProjectileBase bullet = bulletGO.GetComponent <ProjectileBase>(); bullet.damage = damageT; if (bullet != null) { bullet.Seek(target); } }