int bulltNo;
public GameObject objBullt;
public AudioSource shoot;
public FrisBullet bullt;
int a;
float Cooler;
//bool cooldown;
// Use this for initialization
void Start () {
//Declare an array of an invariable number
bulltNo = GameObject.FindGameObjectsWithTag ("Bullet").Length;
objBullt = new GameObject[bulltNo];
bullt = new FrisBullet[bulltNo];
objBullt = GameObject.FindGameObjectsWithTag ("Bullet");
//specific amount of loops
for(int i = 0;i<bulltNo;i++){
bullt _= objBullt*.GetComponent<FrisBullet>();*_
* }*
* a = 0;*
}
* // Update is called once per frame*
* void Update () {*
_ transform.Rotate (new Vector3 (0, 50 * Input.GetAxis (“Horizontal”) * Time.deltaTime, 0));_
* if(Input.GetMouseButton(0))*
* {*
* bullt[a].StartCoroutine(“Fritter”);*
* a++;*
* if(a >= bulltNo) a = 0;*
* }*
* if (Input.GetMouseButtonUp (0))*
* shoot.Stop ();*
* if (Input.GetMouseButtonDown (0))*
* shoot.Play ();*
* }*
}