Example #1
0
    public void Inspect(Sprite sprite, Inspectable inspectable)
    {
        isInspecting = true;
        inspectableImage.GetComponent <UiScaler>().UpdateScale();
        inspectableImage.GetComponent <Image>().color  = Color.white;
        inspectableImage.GetComponent <Image>().sprite = inspectable.sprite;

        for (int i = 0; i < 5; i++)
        {
            if (inspectable.pieces[i])
            {
                poster.pieces[i] = inspectable.pieces[i];
            }
        }
        if (!inspectable.isPoster)
        {
            poster.UpdatePoster();
        }

        if (inspectable.id != -1)
        {
            pagePieces[inspectable.id] = true;
        }

        currentInspectable = inspectable;
        player.canMove     = false;
        FadeOut(0.5f, 0.5f, 0);
    }