using System.Collections; using System.Collections.Generic; using UnityEngine; public class PuzzleSkillDisplayer : MonoBehaviour { public PuzzleHero Hero; public Board currBoard; public SpriteRenderer HeroImage; public int startRow; public int startColumn; // Start is called before the first frame update public void SetHero(PuzzleHero hero,Board board,int row,int column) { Hero = hero; hero.Displayer = this; currBoard = board; startRow = row; startColumn = column; SkillConfig? config = PuzzleGameMode.main.GetSkillConfig(hero.AttackSkillID); if (config == null) { return; } HeroImage.size = new Vector2(board.NodeSize()*config.Value.SkillSize.y,board.NodeSize()*config.Value.SkillSize.x); HeroImage.GetComponent().size = HeroImage.size; HeroImage.sprite = config.Value.SkillCardImage ? config.Value.SkillCardImage : Hero.Icon.Value; } public void TryCastSkill() { // if(Timer // /// Update is called every frame, if the MonoBehaviour is enabled. // /// // void Update() // { // if(Timer