protected override void function(PlayerController player) { if (player.gameObject.GetComponent <PlayerUp>() != null) { for (int i = 0; i < EnergyNum; i++) { if (add) { GameSystem.EnergyUp(); } else { GameSystem.EnergyDown(); } } Boom(); Destroy(this); } }
public void SubEnergy() { GameSystem.EnergyDown(); }