Пример #1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        PlayerControlScript player = collision.GetComponent <PlayerControlScript>();

        if (player != null)
        {
            player.PassedGate();
            PortalNoise.Play();
        }
    }