public void CreateInvisibleCard(CardWrapper FromCard) { InvisibleCard = MonoBehaviour.Instantiate(BattlePrefabsConfig.Get().CardWrapperPrefab); InvisibleCard.SetParent(GetTransform()); InvisibleCard.SetState(CardState.Hand, FromCard.GetOriginalSkill()); InvisibleCard.gameObject.SetActive(false); }
public void AddCard(CardWrapper NewCard) { Cards.Add(NewCard); NewCard.SetState(CardState.Hand, NewCard.GetOriginalSkill()); NewCard.SetParent(GetTransform()); ShrinkCards(); UpdateHandData(); }
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); }