protected override void Regenerate(Transform player) { EnergyController energy = player.GetComponent <EnergyController>(); if (energy != null) { energy.Add(regenarationValue); Destroy(this.gameObject); } }
protected override void Regenerate(Transform player) { EnergyController energy = player.GetComponent <EnergyController>(); if (energy != null) { energy.Add(regenarationValue); Destroy(this.gameObject); } }