private void Awake() { staminaBarContainer = GetComponent <Image>(); manticoreStaminaComponent = GameManager.GetPlayerTransform().GetComponent <EntityStaminaComponent>(); barHeight = staminaBar.rectTransform.sizeDelta.y; barContainerHeight = staminaBarContainer.rectTransform.rect.height; }
protected override void OnEnable() { base.OnEnable(); staminaComponent = GetComponent <EntityStaminaComponent>(); gear = GetComponent <EntityGearManagement>(); }