void SetInitialReferences() { enemyMaster = transform.GetComponentInParent <BotMaster>(); rigidBody = GetComponent <Rigidbody>(); bloodPrefab = (GameObject)Resources.Load("Prefabs/Blood Particle", typeof(GameObject)); canTakeDamage = true; }
void SetInitialReferences() { _animator = GetComponent <Animator>(); _botMaster = GetComponent <BotMaster>(); _enemyNavPause = GetComponent <BotNavPause>(); _botMedic = GetComponent <BotMedic>(); _myTransform = transform; }
private void SetInitialReferences() { _botMaster = GetComponent <BotMaster>(); _audiosource = GetComponent <AudioSource>(); _characterController = GetComponent <CharacterController>(); _animator = GetComponent <Animator>(); _footStepManager = GetComponentInChildren <FootStepManager>(); }
void SetInitialReferences() { _botMaster = GetComponent <BotMaster>(); _myAnimator = GetComponent <Animator>(); if (GetComponent <NavMeshAgent>() != null) { _myNavMeshAgent = GetComponent <NavMeshAgent>(); } }
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>(); } }
void SetInitialReferences() { _botMaster = GetComponent <BotMaster>(); _botMedic = GetComponent <BotMedic>(); _myTransform = transform; if (_head == null) { _head = _myTransform; } _checkRate = Random.Range(0.8f, 1.2f); }
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; }
void setInitialReferences() { enemyMaster = GetComponent <BotMaster>(); }
void SetInitialReferences() { _animator = GetComponent <Animator>(); _botMaster = GetComponent <BotMaster>(); _enemyNavPause = GetComponent <BotNavPause>(); }