Beispiel #1
0
    void OnCollisionEnter(Collision other)
    {
        if (other.transform.tag == "Player" && !collected)
        {
            gunCtrl.AddAberration(this);
            Destroy(filter);
            Destroy(rb);
            Destroy(box);
            Destroy(renderer);

            collected = true;
        }
    }