void Awake() { player = GetComponent <Player>(); playerMovement = GetComponent <PlayerMovement>(); playerAnim = GetComponent <PlayerAnimation>(); ray = GameManager.Instance.InteractableRaycaster; dialogue = UIManager.Instance.DialoguePanel; }
void Awake() { anim = GetComponent <PlayerAnimation>(); sprite = GetComponentInChildren <SpriteRenderer>(); playerMovement = GetComponent <PlayerMovement>(); playerAttack = GetComponent <PlayerAttack>(); Health = (HealthStat as HealthStat).MaxHealth; Stamina = (StaminaStat as StaminaStat).MaxStamina; UIManager.Instance.UpdateGemCount(gems); }
void Awake() { rigidBody = GetComponentInChildren <Rigidbody2D>(); playerAnim = GetComponent <PlayerAnimation>(); player = GetComponent <Player>(); }