michaelrenoo_Dungeorus/Software/Dungerous_0.1/Assets/Script/Buff1Script.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Buff1Script : MonoBehaviour
{

    public Collider2D collision;
    public GameObject item;

    // Update is called once per frame
    void FixedUpdate()
    {
        OnTriggerEnter2D(collision);

    }


    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.gameObject.tag.Equals("Character"))
        {
            ScoreScript.scoreValue += 230;
            Destroy(item);
        }

    }

}
