Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        PlayerAvatar player = other.GetComponent <PlayerAvatar>();

        if (player)
        {
            player.hitsDoor(name);
        }
    }