Delete object when two TAGGED objects collide

Hello, I need help. I’am making a game like portal and want to make it so that when the player drops the cube on a button it will delete a door gameobject

Im also a newbie with unity!

I found a forum post about this issue a few months back and I've lined it below. Current UNET doesn't directly support a seperate project for client / server. It sounds like making this an option down the road is on their roadmap, but when / if that would be released would be speculation, http://forum.unity3d.com/threads/crcmismatch-error.325348/ For now I think you're stuck either merging your projects together or utilizing the old networking system. From using both of these I would recommend merging your project and staying with UNET.

1 Answer

1

The button has a trigger. The cube has a tag “Cube”.

  function  OnTriggerEnter ( other : Collider ){
        if other.gameObject.CompareTag("Cube"){
            GameObject.Destroy( door );
        }
    }

thats it basically, this is JS written out of the blue, might contain errors.

Didn't Work

The problem is that I don't want players hosting their own servers so I don't even want to release that capability. Also, it would make the file unnecessarily larger. For now I think I'm going to downgrade my Unity client back to a version with the old networking system. Thanks anyway for all your help!