public void Collect(ItemType type, int value) { Debug.Log(type + " has collected with value " + value); switch (type) { case ItemType.Coin: { guiController.UpdateCoinCountText(coins, value); coins += value; audioController.PlaySFX(audioController.coin); } break; case ItemType.Star: { guiController.AddStar(stars); stars += value; audioController.PlaySFX(audioController.star); } break; } }