private void OnTriggerEnter2D(Collider2D target) { if (target.gameObject.tag == "Player" && !touch) { scoreSheet.AddScore(this.scoreValue); SetCountText(); Debug.Log("current score is :" + scoreSheet.GetScore()); touch = true; animController.SetBool("collected", touch); collectSFX.Play(); } }