public void SpawnItemAtTile(Tile tile, ItemManager.ItemId item) { if (item != ItemManager.ItemId.None) { var itemObj = CreateItemObject(tile.transform, ItemManager.current.GetItem(item)); tile.item = item; Debug.Log(itemObj + " spawned at " + tile); } }
/// <summary> /// 取得アイテム情報を表示する /// </summary> /// <param name="item">アイテムID</param> public void SetItem(ItemManager.ItemId item) { ItemManager.Instance.SelectArrayFromItemId(item, items, (x) => x.gameObject.GetComponent <Image>().color = new Color(1, 1, 1, 1)); }