public override void _Ready() { _needsController = GetNode <NeedsController>(_needsControllerPath); _hungerBar = GetNode <ProgressBar>("HungerBar"); _thirstBar = GetNode <ProgressBar>("ThirstBar"); _reproductionBar = GetNode <ProgressBar>("ReproductionBar"); }
public override void _Ready() { _reproductionController = GetNode <ReproductionController>("ReproductionController"); _needsController = GetNode <NeedsController>("NeedsController"); _reproductionController.Gender = _gender; _reproductionController.Connect("HadSex", this, nameof(ReproductionControllerOnHadSex)); _reproductionController.Connect("Birth", this, nameof(ActorBirth)); _needsController.Connect("SexWith", this, nameof(NeedsControllerOnSexWith)); }