public void PrepareCurrentBodyCheck() { index = shopBinder.GetBodyIndex(); Item body = items[index]; CheckAnimationController bodyAnim = body.GetComponent <CheckAnimationController>(); bodyAnim.CheckItem(); }
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]); } }