public void DropPickup(Pickup.Type type, Vector3 pos, int count) { Pickup prefab = type == Pickup.Type.COIN ? coinPrefab : healthPrefab; Pickup pickup = Instantiate(prefab); pickup.transform.position = pos; pickup.count = count; }
public void PlayerPickup(int count, Pickup.Type type) { SoundManager.PlaySound(SoundManager.SoundEnum.Pickup); if (type == Pickup.Type.Score) { PlayerScore += count; } else if (type == Pickup.Type.Drill) { PlayerDrillCount += count; } }