private void HandlePlayerSpawned(BattlePlayer player)
        {
            AIStateMachine ai = ObjectPoolManager.Create <AIStateMachine>(aiPrefab_, parent: player.gameObject);

            ai.Init(player, aiConfiguration_);
        }
Пример #2
0
 // PRAGMA MARK - IAIMovementAction Implementation
 void IAIMovementAction.Init(AIStateMachine stateMachine)
 {
     stateMachine_ = stateMachine;
     MoveToRandomNearbyPosition();
 }
Пример #3
0
 // PRAGMA MARK - Public Interface
 public void Init(AIStateMachine stateMachine)
 {
     StateMachine_ = stateMachine;
 }