Ejemplo n.º 1
0
 void Awake()
 {
     player         = GetComponent <Player>();
     playerMovement = GetComponent <PlayerMovement>();
     playerAnim     = GetComponent <PlayerAnimation>();
     ray            = GameManager.Instance.InteractableRaycaster;
     dialogue       = UIManager.Instance.DialoguePanel;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 void Awake()
 {
     rigidBody  = GetComponentInChildren <Rigidbody2D>();
     playerAnim = GetComponent <PlayerAnimation>();
     player     = GetComponent <Player>();
 }