void OnTriggerExit2D(Collider2D collision) { //Mendapatkan komponen Bird Bird bird = collision.gameObject.GetComponent <Bird>(); //Menambahkan score jika burung tidak null dan burung belum mati; if (bird && !bird.IsDead()) { bird.AddScore(1); RNG_Ammo = Random.Range(1, 5); if (RNG_Ammo == 1) { shoot.AddAmmo(1); } } }