Exemplo n.º 1
0
    private void Awake()
    {
        staminaBarContainer       = GetComponent <Image>();
        manticoreStaminaComponent = GameManager.GetPlayerTransform().GetComponent <EntityStaminaComponent>();
        barHeight = staminaBar.rectTransform.sizeDelta.y;

        barContainerHeight = staminaBarContainer.rectTransform.rect.height;
    }
Exemplo n.º 2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     staminaComponent = GetComponent <EntityStaminaComponent>();
     gear             = GetComponent <EntityGearManagement>();
 }