コード例 #1
0
        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;
 }