initialLife method

  1. @override
void initialLife(
  1. double life
)
override

Set initial life

Implementation

@override
void initialLife(double life) {
  barLife?.updateLife(life);
  barLife?.updatemaxLife(life);
  super.initialLife(life);
}