void OnTriggerEnter(Collider col) { if (col.tag == "Player") { Destroy(col.gameObject); if (cg != null) { cg.SpawnNewBall(); } } }
void OnTriggerEnter(Collider col) { if (col.tag == "Player") { Debug.Log("Score 1"); Destroy(gameObject); Destroy(col.gameObject); if (cg != null) { cg.SpawnNewBall(); sm.IncrementScore(); } } }