//---- Needs to be replaced to antoher place ---- // private void Start() { //initialize card deck cardDeck = GetComponentInChildren <PlayerCardDeckBehaviour>(); damageAble = GetComponent <DamageAble>();; PV = GetComponent <PhotonView>(); spriteRenderer = GetComponent <SpriteRenderer>(); playerMana = playerBeginMana; manaUI.InitSlider(playerMaxMana, playerMana); hpUI.InitSlider(damageAble.StartHealth, damageAble.StartHealth); if (!DebugMode) { spriteRenderer.enabled = false; } if (cardDeck) { cardDeck.GiveCardSet(this); } }
public void SetValues(PlayerCardDeckBehaviour _cardDeck) { cardDeck = _cardDeck; }
public void SetCardDeck(PlayerCardDeckBehaviour _deck) { cardDeck = _deck; }