protected virtual void Awake() { _characterWeapon = GetComponent <CharacterWeapon>(); _rb = GetComponent <Rigidbody>(); _animator = GetComponent <Animator>(); _animLayerIndex = _animator.GetLayerIndex("Upper Body"); _chest = _animator.GetBoneTransform(HumanBodyBones.Chest); _animator.SetTrigger(Idle); }
protected virtual void Awake() { Inventory = GetComponent <CharacterInventory>(); _weapon = GetComponent <CharacterWeapon>(); _animation = GetComponent <CharacterAnimation>(); }
private void Awake() { _characterWeapon = GetComponent <PlayerWeapon>(); _characterReload = GetComponent <CharacterReload>(); }