コード例 #1
0
    public void PrepareCurrentBodyCheck()
    {
        index = shopBinder.GetBodyIndex();
        Item body = items[index];
        CheckAnimationController bodyAnim = body.GetComponent <CheckAnimationController>();

        bodyAnim.CheckItem();
    }
コード例 #2
0
    private void Start()
    {
        shopBinder = GetComponentInParent <ShopDataBinder>();

        string tempFramePath = framePath + " " + (shopBinder.GetBodyIndex() + 1).ToString();

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

        if (frames.Length != 0)
        {
            frameVisual_1.SetVisual(frames[0]);
            frameVisual_2.SetVisual(frames[1]);
            frameVisual_3.SetVisual(frames[2]);
        }
    }