Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        LinkController controller = other.gameObject.GetComponent <LinkController>();

        if (controller != null)
        {
            cam.Move(camChange);
            controller.RoomChange(playerChange);
        }
    }