public void AddData(GameArtData obj) { if (!obj.collected) { theCollectionList.Add(obj); obj.collected = true; } if (theCollectionList.Contains(obj)) { } if (!theCollectionList.Contains(obj)) { theCollectionList.Add(obj); theCollectionList.Remove(obj); } if (theCollectionList.Contains(obj)) { ; } { theCollectionList.Remove(obj); } }
public void AddData(GameArtData obj) { foreach (var gameArt in collectionList) { Debug.Log(gameArt); } }
public void UpdateImage(GameArtData newIcon) { icon = newIcon; uiImage.sprite = icon.art; uiImage.useSpriteMesh = true; imageColor = icon.artColor; }
public void AddData(GameArtData obj) { if (!collectionList.Contains(obj)) { collectionList.Add(obj); } }
public void AddData(GameArtData obj) { if (!obj.collected) { CollectionList.Add(obj); obj.collected = true; } }
private void AddData(GameArtData obj) { for (int i = 0; i < collectionList.Count; i++) { if (collectionList.Contains(obj)) { collectionList.Remove(obj); } } }
public void AddKey(GameArtData doorKey) { for (int i = 0; i < keyCollectionList.Capacity; i++) { if (keyCollectionList.Contains(doorKey)) { keyCollectionList.Add(doorKey); } } }
public void AddData(GameArtData obj) { for (var i = 0; i < collectionList.Count; i++) { if (collectionList.Contains(obj)) { collectionList.Add(obj); } } }
public void AddData(GameArtData obj) { foreach (var gameArt in listCollection) { if (listCollection.Contains(obj)) { listCollection.Add(obj); } } }
public void AddData(GameArtData obj) { if (!collectionList.Contains(obj)) { collectionList.Add(obj); } //foreach (var gameArt in collectionList) //{ // Debug.Log(gameArt); //} }
public void AddData(GameArtData obj) { if (obj.collected) { Debug.Log(candyType); } if (!theCollectionList.Contains(obj)) { theCollectionList.Add(obj); } if (theCollectionList.Contains(obj)) { ; } { theCollectionList.Remove(obj); } }
public void AddData(GameArtData obj) { if (!collectionList.Contains(obj)) { collectionList.Add(obj); } //foreach (var gameArt in collectionList) { // Debug.Log(gameArt); } // for (var i = 0; i < collectionList.Count; i++) { // if (collectionList[i] == obj) { // collectionList.Add(obj); } } }
public void AddData(GameArtData obj) { if (!collectionList.Contains(obj)) { collectionList.Add(obj); } //foreach (var gameArt in collectionList) //{ // Debug.Log(gameArt); //} //--same as foreach //for (var i = 0; i < collectionList.Count; i++) //{ // Debug.Log(collectionList[i]); //} }
public void AddData(GameArtData obj) { foreach (var gameArt in theCollectionList) { Debug.Log(gameArt); } for (var i = 0; i < theCollectionList.Count; i++) { { Debug.Log(theCollectionList[i]); } if (theCollectionList[i] == obj) { theCollectionList.Add(obj); } if (theCollectionList[i] != obj) { theCollectionList.Add(obj); } } }
public void AddArtData(GameArtData obj) { artCollection.Add(obj); obj.collected = true; }
public void RemoveLastItem(GameArtData obj) { collectionList.RemoveAt(collectionList.Count - 1); }
public void AddData(GameArtData obj) { Debug.Log(collectionList[0]); }