Exemplo n.º 1
0
 public void Clear()
 {
     if (area != null)
     {
         area.Cancel();
         area = null;
     }
     Global.battleUI.SwitchState(BattleUI.BattleState.SKILL);
 }
Exemplo n.º 2
0
 public void Load(Skill skill)
 {
     if (!connectedToBoard)
     {
         Global.board.Connect(nameof(Board.tile_hovered), this, nameof(on_TileHovered));
         connectedToBoard = true;
     }
     GetNode <Visual.Tables.SkillTable>("SkillTable").SetSkill(skill);
     this.skill = skill;
     area       = skill.area.Clone();
     launcher   = Global.battle.currentActor;
     area.Start(launcher);
 }
Exemplo n.º 3
0
 public SkillAreaCreator(SkillAreaCreator skillAreaCreator) : this(skillAreaCreator.minRange, skillAreaCreator.maxRange, skillAreaCreator.constraint)
 {
 }