Пример #1
0
    //---- 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);
        }
    }
Пример #2
0
 public void SetValues(PlayerCardDeckBehaviour _cardDeck)
 {
     cardDeck = _cardDeck;
 }
Пример #3
0
 public void SetCardDeck(PlayerCardDeckBehaviour _deck)
 {
     cardDeck = _deck;
 }