initialLife method

void initialLife(
  1. double life
)

Set initial life

Implementation

void initialLife(double life) {
  _life = life;
  _maxLife = life;
}