Exemple #1
0
    public void ReturnFlameThrower(FlameThrower2Way card)
    {
        if (card.gameObject.activeSelf)
        {
            card.gameObject.SetActive(false);
        }

        card.transform.SetParent(_tr_FlameThrower2Way);
        _stack_FlameThrower2Way.Push(card);
    }
Exemple #2
0
    private void MakeFlameThrower2Way(int count)
    {
        for (int i = 0; i < count; i++)
        {
            FlameThrower2Way newFlameThrower2Way = Instantiate(DataManager.instance.flameThrower2Way);
            newFlameThrower2Way.gameObject.SetActive(false);
            newFlameThrower2Way.transform.SetParent(_tr_FlameThrower2Way);

            _stack_FlameThrower2Way.Push(newFlameThrower2Way);
        }
    }