void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.name.Contains("basket")) { money++; CoinSoundMake.MakeCoinSound(); Destroy(gameObject); } }
void OnMouseDown() { money++; CoinSoundMake.MakeCoinSound(); Destroy(gameObject); }
void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.name.Contains("basket")) { money++; CoinSoundMake.MakeCoinSound(); Destroy(gameObject); } }
void OnMouseDown() { money++; CoinSoundMake.MakeCoinSound(); Destroy(gameObject); }