protected virtual void Start() { SetMaxHealthFromHealthLevel(); currentHealth = maxHealth; animatorHandler = GetComponentInChildren <AnimatorHandler>(); weaponSlotManager = GetComponentInChildren <WeaponSlotManager>(); }
protected virtual void Start() { Physics.IgnoreCollision(characterCollider, characterCollisionBlockerCollider, true); animatorHandler = GetComponentInChildren <AnimatorHandler>(); stats = GetComponent <CharacterStats>(); }
private void Awake() { playerAttacker = GetComponent <PlayerAttacker>(); playerInventory = GetComponent <PlayerInventory>(); playerManager = GetComponent <PlayerManager>(); weaponSlotManager = GetComponentInChildren <PlayerWeaponSlotManager>(); consumableSlotManager = GetComponentInChildren <ConsumableSlotManager>(); uiManager = FindObjectOfType <UIManager>(); cameraHandler = FindObjectOfType <CameraHandler>(); animatorHandler = GetComponentInChildren <AnimatorHandler>(); Cursor.lockState = CursorLockMode.Locked; }