Ejemplo n.º 1
0
    public void PrepareCurrentSpecialCheck()
    {
        index = shopBinder.GetSpecialIndex();
        Item special = items[index];
        CheckAnimationController specialAnim = special.GetComponent <CheckAnimationController>();

        specialAnim.CheckItem();
    }
Ejemplo n.º 2
0
    private void Start()
    {
        shopBinder = GetComponentInParent <ShopDataBinder>();

        string tempFramePath = specialFramePath + " " + shopBinder.GetSpecialIndex().ToString();

        Sprite[] frames = ItemSpawner.LoadSprites(tempFramePath);

        if (frames.Length != 0)
        {
            specialFrameVisual_1.SetVisual(frames[0]);
            specialFrameVisual_2.SetVisual(frames[1]);
            specialFrameVisual_3.SetVisual(frames[2]);
        }
    }