Ejemplo n.º 1
0
    void Start()
    {
        instance = this;
        player   = GameObject.FindGameObjectWithTag("Player");
        pAction  = player.GetComponent <PlayerAction>();

        particle = this.GetComponent <ParticleSystem>();
        isMoving = false;
    }
Ejemplo n.º 2
0
 public BT_Detect(BT_AIBehavior AI, List <Transform> enemyInSight, MoveSoundUI soundCheck)
 {
     m_AI              = AI;
     m_enemyInSight    = enemyInSight;
     mIsPlayerDetected = false;
 }