private void OnTriggerEnter(Collider other) { if (other.tag == "Ball") { other.GetComponent <Ball>().status = Ball.Status.Destroyed; BallSpawner.DestroyBall(); } }
private void OnTriggerEnter(Collider other) { if (other.tag == "Ball") { //Debug.Log("Bekle beni Veeeeeeeyyy"); other.GetComponent <Ball>().status = Ball.Status.Destroyed; int ballID = other.GetComponent <Ball>().id; ballInfo.Add(ballID); Debug.Log("Listedeki Top ID'si sayısı: " + ballInfo.Count); StreakControl(); BallSpawner.DestroyBall(); Debug.Log("Toplam Skor: " + totalScore); } }