Ejemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        if (!isServer)
        {
            return;
        }

        if (other.tag == PLAYER_TAG)
        {
            //_debug.print($"opening door {door.name}", isServer, isLocalPlayer, $"KEY {name}");

            _game.CaptureKey(this);

            Destroy(gameObject);
        }
    }