public override void UpdateState() { base.UpdateState(); CheckLeaveStateConditions(); _movementController.UpdateMovement(); _suspention -= _suspention > 0f ? 0.01f : 0f; }
public override void UpdateState() { base.UpdateState(); CheckLeaveStateConditions(); if (Random.Range(0, 500) == 1) { _masterBrain.StatusText.text = _guardBrains.WanderingStrings[Random.Range(0, _guardBrains.WanderingStrings.Length)]; } _movementController.UpdateMovement(); _suspention -= _suspention > 0f ? 0.01f : 0f; }