public void ShowItem(EEthni tmp) { for (int i = 0; i < ItemsBed.Count; ++i) { if(tmp == ItemsBed[i].tmp) { ItemsBed[i].GetComponent<SpriteRenderer>().enabled = true; } } }
public void ShowItem(EEthni tmp) { for (int i = 0; i < ItemsBed.Count; ++i) { if (tmp == ItemsBed[i].tmp) { ItemsBed[i].GetComponent <SpriteRenderer>().enabled = true; } } }