public void PrepareCurrentSpecialCheck() { index = shopBinder.GetSpecialIndex(); Item special = items[index]; CheckAnimationController specialAnim = special.GetComponent <CheckAnimationController>(); specialAnim.CheckItem(); }
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]); } }