void OnCollisionEnter(Collision col) { if (col.gameObject.tag == "Bullet") { Instantiate(pointParticle, this.transform); audioSource.PlayOneShot(pointSound); GameObject[] bullets = GameObject.FindGameObjectsWithTag("Bullet"); foreach (var bullet in bullets) { Destroy(bullet); } score++; createSphere._CreateSpehere(); } }
public void _GameStart() { createSphere._CreateSpehere(); GameStartBtn.SetActive(false); }