public void RestoreState(object state)
 {
     behaviour = (HealthControllerBehaviour)state;
     if (behaviour.healthPoints.value <= 0)
     {
         behaviour.Die();
     }
 }
 private void Awake()
 {
     behaviour = new HealthControllerBehaviour(healthRegenerationOnLevelUp, GetComponent <Animator>(), GetComponent <ActionScheduler>(), GetComponents <Collider>(), componentsToDisbaleOnDie, GetComponent <BaseStats>());
 }