/// <summary> /// Set the BotPartWander that will handle to Wander logic /// </summary> public void SetCurrentBotWander(BotPartWander b) { if (_BotWanderComponents.Contains(b)) { StopWandering(true); _currentBotWanderComponent = b; } else { throw new System.Exception($"{name} does not contain component"); } }
// Start is called before the first frame update public void Initialize(BotPartWander initialBotWander) { SetCurrentBotWander(initialBotWander); InitStates(); BTFiniteStateMachineManagerComponent.AddFSM(FSM); }