예제 #1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.CompareTag("Player"))
        {
            PlayerPrefs.SetInt("Coins", PlayerPrefs.GetInt("Coins") + 1);
            som.Scratch();

            ps.Play();
            Destroy(sprend);
            Destroy(coll);
            reel.earlyReel();
        }
    }