private void Awake() { MagazineSize = 1; _ammo = MagazineSize; _acceptedAngleFromBehindInRadians = _acceptedAngleFromBehind * Mathf.Deg2Rad; _playerPosition = FindObjectOfType <Player>().transform; _takeOverBehaviour = FindObjectOfType <Player>().GetComponent <TakeOverBehaviour>(); }
private void Awake() { MovementBehaviour = GetComponent <MovementBehaviour>(); ShootingBehaviour = GetComponent <ShootingBehaviour>(); _stealthBehaviour = GetComponent <StealthBehaviour>(); _takeOverBehaviour = GetComponent <TakeOverBehaviour>(); _interActionBehaviour = GetComponent <InterActionBehavior>(); HealthBehaviour = GetComponent <HealthBehaviour>(); _defendingBehaviour = GetComponent <DefendingBehaviour>(); _swithcTakeOverBehaviour = GetComponent <SwitchTakeOverBehaviour>();; }
private void Awake() { _takeOverBehaviour = GetComponent <TakeOverBehaviour>(); }