Exemplo n.º 1
0
 protected virtual void Start()
 {
     SetMaxHealthFromHealthLevel();
     currentHealth     = maxHealth;
     animatorHandler   = GetComponentInChildren <AnimatorHandler>();
     weaponSlotManager = GetComponentInChildren <WeaponSlotManager>();
 }
Exemplo n.º 2
0
        protected virtual void Start()
        {
            Physics.IgnoreCollision(characterCollider, characterCollisionBlockerCollider, true);

            animatorHandler = GetComponentInChildren <AnimatorHandler>();
            stats           = GetComponent <CharacterStats>();
        }
Exemplo n.º 3
0
 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;
 }