void Awake() { _animation = GetComponentInChildren <Animation>(); _squad = ZombieSquad.Instance; _zombies.Clear(); _zombies = new List <Zombie>(gameObject.GetComponentsInChildren <Zombie>()); }
// Use this for initialization void Start() { Application.LoadLevelAdditive("main_ui"); Instance = this; _ui3dController = FindObjectOfType <UI3dController>(); _zombieSquad = FindObjectOfType <ZombieSquad>(); _humanBase = FindObjectOfType <HumanBase>(); _elapsedTime = 0f; }
void Awake() { _healthBar = GetComponentInChildren <ZombieHealthBar>(); _zombieAI = GetComponent <ZombieAI>(); _zombieMover = GetComponent <ZombieMover>(); _squad = transform.parent.GetComponent <ZombieSquad>(); if (_squad == null) { _squad = FindObjectOfType <ZombieSquad>(); } AudioManager = GetComponent <ZombieAudioManager>(); Invoke("UpdateParametersByMode", 0.1f); }
void Awake() { AudioManager = GetComponent <ZombieSquadAudioManager>(); Instance = this; _zombies = new List <Zombie>(GetComponentsInChildren <Zombie>()); _brainDepot = FindObjectOfType <BrainDepot>(); if (_brainDepot == null) { Debug.LogWarning("brainDepot base is null"); } _jailManager = FindObjectOfType <ZombieJailManager>(); _humanBase = FindObjectOfType <HumanBase>(); if (_humanBase == null) { Debug.LogWarning("human base is null"); } _startTimer.WaitForSeconds(3f); }
void Awake() { _mover = GetComponent <WaypointMover>(); _squad = GameObject.FindObjectOfType <ZombieSquad>(); _initialMoveSpeed = _mover.MoveSpeed; }
void Awake() { _squad = GetComponent <ZombieSquad>(); _originalCameraY = _cameraToControl.transform.position.y; }