private void HandlePlayerSpawned(BattlePlayer player) { AIStateMachine ai = ObjectPoolManager.Create <AIStateMachine>(aiPrefab_, parent: player.gameObject); ai.Init(player, aiConfiguration_); }
// PRAGMA MARK - IAIMovementAction Implementation void IAIMovementAction.Init(AIStateMachine stateMachine) { stateMachine_ = stateMachine; MoveToRandomNearbyPosition(); }
// PRAGMA MARK - Public Interface public void Init(AIStateMachine stateMachine) { StateMachine_ = stateMachine; }