Ejemplo n.º 1
0
 void SetInitialReferences()
 {
     enemyMaster   = transform.GetComponentInParent <BotMaster>();
     rigidBody     = GetComponent <Rigidbody>();
     bloodPrefab   = (GameObject)Resources.Load("Prefabs/Blood Particle", typeof(GameObject));
     canTakeDamage = true;
 }
Ejemplo n.º 2
0
 void SetInitialReferences()
 {
     _animator      = GetComponent <Animator>();
     _botMaster     = GetComponent <BotMaster>();
     _enemyNavPause = GetComponent <BotNavPause>();
     _botMedic      = GetComponent <BotMedic>();
     _myTransform   = transform;
 }
Ejemplo n.º 3
0
 private void SetInitialReferences()
 {
     _botMaster           = GetComponent <BotMaster>();
     _audiosource         = GetComponent <AudioSource>();
     _characterController = GetComponent <CharacterController>();
     _animator            = GetComponent <Animator>();
     _footStepManager     = GetComponentInChildren <FootStepManager>();
 }
Ejemplo n.º 4
0
 void SetInitialReferences()
 {
     _botMaster  = GetComponent <BotMaster>();
     _myAnimator = GetComponent <Animator>();
     if (GetComponent <NavMeshAgent>() != null)
     {
         _myNavMeshAgent = GetComponent <NavMeshAgent>();
     }
 }
Ejemplo n.º 5
0
 void SetInitialReferences()
 {
     _botMaster    = GetComponent <BotMaster>();
     _botDetection = GetComponent <BotDetection>();
     _checkRate    = Random.Range(0.1f, 0.2f);
     if (GetComponent <NavMeshAgent>() != null)
     {
         _myNavMeshAgent = GetComponent <NavMeshAgent>();
     }
 }
 void SetInitialReferences()
 {
     _botMaster   = GetComponent <BotMaster>();
     _botNavPause = GetComponent <BotNavPause>();
     _checkRate   = Random.Range(0.2f, 0.3f);
     if (GetComponent <NavMeshAgent>() != null)
     {
         _myNavMeshAgent = GetComponent <NavMeshAgent>();
     }
 }
Ejemplo n.º 7
0
    void SetInitialReferences()
    {
        _botMaster   = GetComponent <BotMaster>();
        _botMedic    = GetComponent <BotMedic>();
        _myTransform = transform;

        if (_head == null)
        {
            _head = _myTransform;
        }

        _checkRate = Random.Range(0.8f, 1.2f);
    }
Ejemplo n.º 8
0
    void SetInitialReferences()
    {
        _patrolPoints = new ArrayList();
        Transform botTargets = GameObject.Find(GameConstants.BotTargetsName).transform;

        foreach (Transform child in botTargets)
        {
            _patrolPoints.Add(child);
        }
        _currentTargetPatrol = (Transform)_patrolPoints[Random.Range(0, _patrolPoints.Count - 1)];
        _botMaster           = GetComponent <BotMaster>();
        _checkRate           = Random.Range(0.3f, 0.4f);
        if (GetComponent <NavMeshAgent>() != null)
        {
            _myNavMeshAgent = GetComponent <NavMeshAgent>();
        }
        _myTransform = transform;
    }
Ejemplo n.º 9
0
 void setInitialReferences()
 {
     enemyMaster = GetComponent <BotMaster>();
 }
Ejemplo n.º 10
0
 void SetInitialReferences()
 {
     _animator      = GetComponent <Animator>();
     _botMaster     = GetComponent <BotMaster>();
     _enemyNavPause = GetComponent <BotNavPause>();
 }