예제 #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.GetComponent <PickUp>() != null)
        {
            PickUp pickUp = other.GetComponent <PickUp>();
            pickUp.Change();

            Destroy(other.gameObject);
            pickUpGenerator.Clone();
        }
    }