public void PrepareCurrentFrontCheck() { index = shopBinder.GetFrontIndex(); Item front = items[index]; CheckAnimationController frontAnim = front.GetComponent <CheckAnimationController>(); frontAnim.CheckItem(); }
// 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(); }