public void AddFish(Issue issue) { Fish currentFish = GetFish(issue.key); if (currentFish == null) { Debug.Log("new fish: " + issue.key); GameObject newFishGO = Instantiate(fishPrefab) as GameObject; newFishGO.name = issue.key; newFishGO.GetComponent <Transform>().SetParent(shoalGameObject.GetComponent <Transform>()); Fish newFish = newFishGO.AddComponent <Fish>(); newFish.Initialize(issue); newFish.Colorize(color); fishes.Add(newFish); MonophonicAudio.instance.Play(newFishFX, 2); } }