Example #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "player")
     {
         // Debug.Log("collition");
         SoundManagerScript.PlaySound("Coins");
         Destroy(gameObject);
         scoreLogic.CoinTaken();
         L1COntoller.Coins += 1;
         //return;
     }
 }