public void CreateInvisibleCard(CardWrapper FromCard)
 {
     InvisibleCard = MonoBehaviour.Instantiate(BattlePrefabsConfig.Get().CardWrapperPrefab);
     InvisibleCard.SetParent(GetTransform());
     InvisibleCard.SetState(CardState.Hand, FromCard.GetOriginalSkill());
     InvisibleCard.gameObject.SetActive(false);
 }
Ejemplo n.º 2
0
        public void AddCard(CardWrapper NewCard)
        {
            Cards.Add(NewCard);
            NewCard.SetState(CardState.Hand, NewCard.GetOriginalSkill());
            NewCard.SetParent(GetTransform());
            ShrinkCards();

            UpdateHandData();
        }
Ejemplo n.º 3
0
        private void GenerateEnemiesTimeline()
        {
            EnemyTimeline = GenerateTimeline(BattlePrefabsConfig.Get().TimelinePrefab);
            EnemyTimeline.Initialize(BattleSystem.Get().BattleBoard.EnemyTimeline);

            foreach (Skill skill in BattleSystem.Get().GetCurrentEnemySkillSet())
            {
                CardWrapper cardWrapper = MonoBehaviour.Instantiate(BattlePrefabsConfig.Get().CardWrapperPrefab);
                cardWrapper.SetState(CardState.Hand, skill);
                EnemyTimeline.AddCard(cardWrapper, false);
            }

            EnemyTimeline.MaxLength = EnemyTimeline.Length;
            EnemyTimeline.Size      = EnemyTimeline.GetContentSize();
            EnemyTimeline.GetTransform().localScale = new Vector3(1, -1, 1);
        }