コード例 #1
0
    public void PrepareCurrentFrontCheck()
    {
        index = shopBinder.GetFrontIndex();
        Item front = items[index];
        CheckAnimationController frontAnim = front.GetComponent <CheckAnimationController>();

        frontAnim.CheckItem();
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        shopBinder = GetComponentInParent <ShopDataBinder>();

        Sprite[] sprites = ItemSpawner.LoadSprites(topPath);
        topVisual.SetVisual(sprites[shopBinder.GetTopIndex()]);
        Debug.Log("Top : " + shopBinder.GetTopIndex());

        sprites = ItemSpawner.LoadSprites(frontPath);
        frontVisual.SetVisual(sprites[shopBinder.GetFrontIndex()]);

        sprites = ItemSpawner.LoadSprites(downPath);
        downVisual.SetVisual(sprites[shopBinder.GetDownIndex()]);
        Debug.Log("Down : " + shopBinder.GetDownIndex());

        sprites = null;

        GC.Collect();
    }